diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-01-18 16:02:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-18 16:04:33 +0100 |
commit | 59e2118e973e73b760d11776be864b4b630098b6 (patch) | |
tree | aaa7ff84542f5d8244b22817a5b7a01f7afd5f98 /ffmpeg.c | |
parent | 54bc6403620286f595becd01842947395020e2f4 (diff) | |
download | ffmpeg-59e2118e973e73b760d11776be864b4b630098b6.tar.gz |
Update threshold to detect real timebase for stream copy.
This may fix a bug where quicktime files use 1/600 timebase.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |