mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: vp9: Fix PTS calculation of cloned frames
This commit is contained in:
parent
9a314a2430
commit
2855682bd3
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue