From 181782ae468fa36c2d41d735f5f3b318183eb8e2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 25 Jun 2008 13:46:06 +0000 Subject: [PATCH] Use correct timestamp value for stream copy. Originally committed as revision 13963 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 37c4a64f53..c3633739b2 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1339,7 +1339,7 @@ static int output_packet(AVInputStream *ist, int ist_index, opkt.pts= AV_NOPTS_VALUE; if (pkt->dts == AV_NOPTS_VALUE) - opkt.dts = av_rescale_q(ist->next_pts, AV_TIME_BASE_Q, ost->st->time_base); + opkt.dts = av_rescale_q(ist->pts, AV_TIME_BASE_Q, ost->st->time_base); else opkt.dts = av_rescale_q(pkt->dts, ist->st->time_base, ost->st->time_base);