mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: always use the calculated presentation timestamp.
Use PTS value computed by the decoder, which could also be derived from the GstVideoCodecFrame PTS. This makes it possible to fix up the PTS if the original one was miscomputed or only represented a DTS instead.
This commit is contained in:
parent
3f60f136cc
commit
492cafdbc1
1 changed files with 1 additions and 2 deletions
|
@ -319,8 +319,7 @@ gst_vaapi_picture_output(GstVaapiPicture *picture)
|
|||
gst_video_codec_frame_set_user_data(out_frame,
|
||||
proxy, (GDestroyNotify)gst_vaapi_mini_object_unref);
|
||||
|
||||
if (!GST_CLOCK_TIME_IS_VALID(out_frame->pts))
|
||||
out_frame->pts = picture->pts;
|
||||
out_frame->pts = picture->pts;
|
||||
if (GST_VAAPI_PICTURE_IS_SKIPPED(picture))
|
||||
GST_VIDEO_CODEC_FRAME_FLAG_SET(out_frame,
|
||||
GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY);
|
||||
|
|
Loading…
Reference in a new issue