[FFmpeg-soc] [soc]: r4581 - concat/libavformat/m3u.c

gkovacs subversion at mplayerhq.hu
Sat Jul 4 09:43:32 CEST 2009


Author: gkovacs
Date: Sat Jul  4 09:43:31 2009
New Revision: 4581

Log:
make pts equal dts + 1 to avoid invalid dts/pts combination error with mpeg1video in avi when dts equals pts

Modified:
   concat/libavformat/m3u.c

Modified: concat/libavformat/m3u.c
==============================================================================
--- concat/libavformat/m3u.c	Sat Jul  4 09:35:24 2009	(r4580)
+++ concat/libavformat/m3u.c	Sat Jul  4 09:43:31 2009	(r4581)
@@ -122,7 +122,7 @@ static int m3u_read_packet(AVFormatConte
         if (pkt) {
             int64_t time_offset = ff_conv_stream_time(ic, pkt->stream_index, playld->time_offsets[pkt->stream_index]);
             pkt->dts += time_offset;
-            pkt->pts = pkt->dts;
+            pkt->pts = pkt->dts + 1;
         }
     }
     // TODO switch from AVERROR_EOF to AVERROR_EOS


More information about the FFmpeg-soc mailing list