[SCM] libav/experimental: Update threshold to detect real timebase for stream copy. This may fix a bug where quicktime files use 1/600 timebase.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:22:09 UTC 2013


The following commit has been merged in the experimental branch:
commit 59e2118e973e73b760d11776be864b4b630098b6
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Tue Jan 18 16:02:15 2011 +0100

    Update threshold to detect real timebase for stream copy.
    This may fix a bug where quicktime files use 1/600 timebase.

diff --git a/ffmpeg.c b/ffmpeg.c
index bae4b80..7cce343 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2147,7 +2147,7 @@ static int transcode(AVFormatContext **output_files,
                 goto fail;
             memcpy(codec->extradata, icodec->extradata, icodec->extradata_size);
             codec->extradata_size= icodec->extradata_size;
-            if(!copy_tb && av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){
+            if(!copy_tb && av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/500){
                 codec->time_base = icodec->time_base;
                 codec->time_base.num *= icodec->ticks_per_frame;
                 av_reduce(&codec->time_base.num, &codec->time_base.den,

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list