summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-25 13:46:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-25 13:46:06 +0000
commit181782ae468fa36c2d41d735f5f3b318183eb8e2 (patch)
treee0a5f8389668f5c6bf570a8081184f41c9e7877d /ffmpeg.c
parent7694a7d93f51adc4eea2f06974b741acb41875e5 (diff)
Use correct timestamp value for stream copy.
Originally committed as revision 13963 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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);