mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
mpegtsmux: only write PTS and DTS if different
This commit is contained in:
parent
fd92a8b65a
commit
f49e74aa34
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ tsmux_stream_initialize_pes_packet (TsMuxStream * stream)
|
|||
stream->pi.flags &= ~(TSMUX_PACKET_FLAG_PES_WRITE_PTS_DTS |
|
||||
TSMUX_PACKET_FLAG_PES_WRITE_PTS);
|
||||
|
||||
if (stream->pts != -1 && stream->dts != -1)
|
||||
if (stream->pts != -1 && stream->dts != -1 && stream->pts != stream->dts)
|
||||
stream->pi.flags |= TSMUX_PACKET_FLAG_PES_WRITE_PTS_DTS;
|
||||
else {
|
||||
if (stream->pts != -1)
|
||||
|
|
Loading…
Reference in a new issue