mpegtsmux: only write PTS and DTS if different
This commit is contained in:
parent
fd92a8b65a
commit
f49e74aa34
@ -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…
x
Reference in New Issue
Block a user