[SCM] libav/experimental: Reduce codec time base when stream copying

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:10:13 UTC 2013


The following commit has been merged in the experimental branch:
commit 8abcbf2d54130d9be896c9b41ca021ce5710a56a
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Sat Jul 3 10:12:22 2010 +0000

    Reduce codec time base when stream copying
    
    Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index a286b0b..e5d8b26 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext **output_files,
             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) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list