summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-11-16 18:22:55 +0200
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-11-16 18:22:55 +0200
commit2855682bd37b72a22a4a7e5de3469c615fb15bbe (patch)
tree7a00fcf952fde5849614064ca637b866eca2ff16
parent9a314a2430048b4a48d471acc79c64c97d46cf6f (diff)
downloadgst-vaapi-2855682bd37b72a22a4a7e5de3469c615fb15bbe.tar.gz
decoder: vp9: Fix PTS calculation of cloned frames
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_vp9.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c
index b9e023d6..3dbc0fbe 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c
@@ -428,6 +428,9 @@ decode_picture (GstVaapiDecoderVp9 * decoder, const guchar * buf,
* the previously decoded frame might be decode-only but repeat-frame
* should make it ready for display */
GST_VAAPI_PICTURE_FLAG_UNSET (picture, GST_VAAPI_PICTURE_FLAG_SKIPPED);
+
+ /* reset picture pts with whatever set in VideoCodecFrame */
+ picture->pts = GST_VAAPI_DECODER_CODEC_FRAME (decoder)->pts;
} else {
/* Create new picture */
picture = GST_VAAPI_PICTURE_NEW (VP9, decoder);