Browse code

Use correct timestamp value for stream copy.

Originally committed as revision 13963 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2008/06/25 22:46:06
Showing 1 changed files
... ...
@@ -1339,7 +1339,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
1339 1339
                             opkt.pts= AV_NOPTS_VALUE;
1340 1340
 
1341 1341
                         if (pkt->dts == AV_NOPTS_VALUE)
1342
-                            opkt.dts = av_rescale_q(ist->next_pts, AV_TIME_BASE_Q, ost->st->time_base);
1342
+                            opkt.dts = av_rescale_q(ist->pts, AV_TIME_BASE_Q, ost->st->time_base);
1343 1343
                         else
1344 1344
                             opkt.dts = av_rescale_q(pkt->dts, ist->st->time_base, ost->st->time_base);
1345 1345