Browse code

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

Michael Niedermayer authored on 2011/01/19 00:02:15
Showing 1 changed files
... ...
@@ -2147,7 +2147,7 @@ static int transcode(AVFormatContext **output_files,
2147 2147
                 goto fail;
2148 2148
             memcpy(codec->extradata, icodec->extradata, icodec->extradata_size);
2149 2149
             codec->extradata_size= icodec->extradata_size;
2150
-            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){
2150
+            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){
2151 2151
                 codec->time_base = icodec->time_base;
2152 2152
                 codec->time_base.num *= icodec->ticks_per_frame;
2153 2153
                 av_reduce(&codec->time_base.num, &codec->time_base.den,