decoder: vp9: Fix PTS calculation of cloned frames
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 16 Nov 2015 16:22:55 +0000 (18:22 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 16 Nov 2015 16:22:55 +0000 (18:22 +0200)
gst-libs/gst/vaapi/gstvaapidecoder_vp9.c

index b9e023d..3dbc0fb 100644 (file)
@@ -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);