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

bcoudurier subversion
Sat Jul 3 12:12:22 CEST 2010


Author: bcoudurier
Date: Sat Jul  3 12:12:22 2010
New Revision: 24019

Log:
Reduce codec time base when stream copying

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Jul  3 06:40:12 2010	(r24018)
+++ trunk/ffmpeg.c	Sat Jul  3 12:12:22 2010	(r24019)
@@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext 
             if(av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){
                 codec->time_base = icodec->time_base;
                 codec->time_base.num *= icodec->ticks_per_frame;
+                av_reduce(&codec->time_base.num, &codec->time_base.den,
+                          codec->time_base.num, codec->time_base.den, INT_MAX);
             }else
                 codec->time_base = ist->st->time_base;
             switch(codec->codec_type) {



More information about the ffmpeg-cvslog mailing list