rewrite pts also, as comment says
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 8 Feb 2009 09:48:59 +0000 (09:48 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 8 Feb 2009 09:48:59 +0000 (09:48 +0000)
Originally committed as revision 17051 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/audiointerleave.c

index e34026c..056fbe1 100644 (file)
@@ -105,7 +105,7 @@ int ff_audio_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int fl
             av_fifo_generic_write(&aic->fifo, pkt->data, pkt->size, NULL);
         } else {
             // rewrite pts and dts to be decoded time line position
-            pkt->dts = aic->dts;
+            pkt->pts = pkt->dts = aic->dts;
             aic->dts += pkt->duration;
             ff_interleave_add_packet(s, pkt, compare_ts);
         }