rewrite pts also, as comment says

Originally committed as revision 17051 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 16 years ago
parent 59453725f2
commit 9e8d61d4f1
  1. 2
      libavformat/audiointerleave.c

@ -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); av_fifo_generic_write(&aic->fifo, pkt->data, pkt->size, NULL);
} else { } else {
// rewrite pts and dts to be decoded time line position // rewrite pts and dts to be decoded time line position
pkt->dts = aic->dts; pkt->pts = pkt->dts = aic->dts;
aic->dts += pkt->duration; aic->dts += pkt->duration;
ff_interleave_add_packet(s, pkt, compare_ts); ff_interleave_add_packet(s, pkt, compare_ts);
} }

Loading…
Cancel
Save