[FFmpeg-cvslog] ffmpeg: use ist->dts in do_streamcopy()

Michael Niedermayer git at videolan.org
Wed Feb 8 17:41:24 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 17:25:01 2012 +0100| [e7f4de34ad442ae91671e8288724b2e63a81072f] | committer: Michael Niedermayer

ffmpeg: use ist->dts in do_streamcopy()

Based on change by Anton Khirnov.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e7f4de34ad442ae91671e8288724b2e63a81072f
---

 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 01359ad..a80b632 100644
--- 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;



More information about the ffmpeg-cvslog mailing list