[FFmpeg-cvslog] r9796 - trunk/ffmpeg.c

aurel subversion
Wed Jul 25 21:36:43 CEST 2007


Author: aurel
Date: Wed Jul 25 21:36:43 2007
New Revision: 9796

Log:
copy packet duration when doing a stream copy

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Wed Jul 25 21:36:43 2007
@@ -1237,6 +1237,7 @@ static int output_packet(AVInputStream *
                                 dts= av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
                             opkt.dts= av_rescale_q(dts + input_files_ts_offset[ist->file_index], AV_TIME_BASE_Q,  ost->st->time_base);
                         }
+                        opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
                         opkt.flags= pkt->flags;
 
                         //FIXME remove the following 2 lines they shall be replaced by the bitstream filters




More information about the ffmpeg-cvslog mailing list