decoder: vp9: Fix PTS calculation of cloned frames

This commit is contained in:
Sreerenj Balachandran 2015-11-16 18:22:55 +02:00
parent 9a314a2430
commit 2855682bd3

View 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);