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
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to