mpegtsmux: only write PTS and DTS if different

This commit is contained in:
Mark Nauwelaerts 2012-06-16 16:50:36 +02:00
parent fd92a8b65a
commit f49e74aa34

View file

@ -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)