mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 16:25:04 +02:00
2nd try for -vcodec copy timebase selection last one choose 1fps due to broken opendivx stream in avi (avi had the correct 15fps)
Originally committed as revision 6920 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1c75f2bc5b
commit
4408e75e02
2
ffmpeg.c
2
ffmpeg.c
@ -1538,7 +1538,7 @@ static int av_encode(AVFormatContext **output_files,
|
||||
codec->bit_rate = icodec->bit_rate;
|
||||
codec->extradata= icodec->extradata;
|
||||
codec->extradata_size= icodec->extradata_size;
|
||||
if(av_q2d(icodec->time_base) > av_q2d(ist->st->time_base))
|
||||
if(av_q2d(icodec->time_base) > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000)
|
||||
codec->time_base = icodec->time_base;
|
||||
else
|
||||
codec->time_base = ist->st->time_base;
|
||||
|
Loading…
Reference in New Issue
Block a user