mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
avvidenc: Set the DTS to 0 if it is negative, not the PTS
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6505>
This commit is contained in:
parent
ee518b9c7e
commit
dc0aebbea0
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ gst_ffmpegvidenc_receive_packet (GstFFMpegVidEnc * ffmpegenc,
|
|||
ffmpegenc->context->time_base);
|
||||
|
||||
if (gst_pts_dts_diff > frame->pts)
|
||||
frame->pts = 0;
|
||||
frame->dts = 0;
|
||||
else
|
||||
frame->dts = frame->pts - gst_pts_dts_diff;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue