]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: use ist->dts in do_streamcopy()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Feb 2012 16:25:01 +0000 (17:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Feb 2012 16:25:01 +0000 (17:25 +0100)
Based on change by Anton Khirnov.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 01359ad39538dbd8599c232d8e5ca9df02f46bf2..a80b632cc547c0ada650e2cd344ab9f251249d0e 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1902,7 +1902,7 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
         opkt.pts = AV_NOPTS_VALUE;
 
     if (pkt->dts == AV_NOPTS_VALUE)
-        opkt.dts = av_rescale_q(ist->pts, AV_TIME_BASE_Q, ost->st->time_base);
+        opkt.dts = av_rescale_q(ist->dts, AV_TIME_BASE_Q, ost->st->time_base);
     else
         opkt.dts = av_rescale_q(pkt->dts, ist->st->time_base, ost->st->time_base);
     opkt.dts -= ost_tb_start_time;