From 2855682bd37b72a22a4a7e5de3469c615fb15bbe Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Mon, 16 Nov 2015 18:22:55 +0200 Subject: decoder: vp9: Fix PTS calculation of cloned frames --- gst-libs/gst/vaapi/gstvaapidecoder_vp9.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.1