mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
tsdemux: Always issue a DTS even when it's equal to PTS
Currently tsdemux timestamps only the PTS, and only issues the DTS if it's different. In that case, parsers tend to estimate the next DTS based on the previous DTS and the duration, which can accumulate rounding errors.
This commit is contained in:
parent
9f4b043161
commit
413c6ec57b
1 changed files with 2 additions and 1 deletions
|
@ -3103,7 +3103,8 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream,
|
|||
buffer = gst_buffer_list_get (buffer_list, 0);
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (stream->pts))
|
||||
GST_BUFFER_PTS (buffer) = stream->pts;
|
||||
GST_BUFFER_PTS (buffer) = GST_BUFFER_DTS (buffer) = stream->pts;
|
||||
/* DTS = PTS by default, we override it if there's a real DTS */
|
||||
if (GST_CLOCK_TIME_IS_VALID (stream->dts))
|
||||
GST_BUFFER_DTS (buffer) = stream->dts;
|
||||
|
||||
|
|
Loading…
Reference in a new issue