diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-10-03 12:58:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-03 12:58:14 +0000 |
commit | e0c91bc23b44043633ce65952146254b5e965ab1 (patch) | |
tree | e031e22d56886f05a4fd0dbb0c7afea3458734cf /libavformat/mpeg.c | |
parent | 2031ba1bf27bd9502329594761c436d6613029ec (diff) | |
download | ffmpeg-e0c91bc23b44043633ce65952146254b5e965ab1.tar.gz |
initial dts fix
Originally committed as revision 3555 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index f071b501d7..8a2d27e793 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -1016,19 +1016,6 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt) pts= pkt->pts; dts= pkt->dts; - if(s->is_svcd) { - /* offset pts and dts slightly into the future to be able - to do the compatibility fix below.*/ - pts += 2; - dts += 2; - - if (stream->packet_number == 0 && dts == pts) - /* For the very first packet we want to force the DTS to be included. - This increases compatibility with lots of DVD players. - Since the MPEG-2 standard mandates that DTS is only written when - it is different from PTS we have to move it slightly into the past.*/ - dts -= 2; - } if(s->is_vcd) { /* We have to offset the PTS, so that it is consistent with the SCR. SCR starts at 36000, but the first two packs contain only padding |