Commit dac2a86c authored by michael's avatar michael

2nd try for -vcodec copy timebase selection last one choose 1fps due to broken...

2nd try for -vcodec copy timebase selection last one choose 1fps due to broken opendivx stream in avi (avi had the correct 15fps)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6920 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bc4ac73c
...@@ -1538,7 +1538,7 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1538,7 +1538,7 @@ static int av_encode(AVFormatContext **output_files,
codec->bit_rate = icodec->bit_rate; codec->bit_rate = icodec->bit_rate;
codec->extradata= icodec->extradata; codec->extradata= icodec->extradata;
codec->extradata_size= icodec->extradata_size; 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; codec->time_base = icodec->time_base;
else else
codec->time_base = ist->st->time_base; codec->time_base = ist->st->time_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment