History

Reduce codec time base when stream copying

Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk

Baptiste Coudurier committed 16 years ago

Commit 8abcbf21 parent 3483d871 file · +2 −0Browse files

Unified · Split

ffmpeg.c+2−0
@@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext **output_files, · 2172 unmodified lines
21732173 if(av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){
21742174 codec->time_base = icodec->time_base;
21752175 codec->time_base.num *= icodec->ticks_per_frame;
2176+ av_reduce(&codec->time_base.num, &codec->time_base.den,
2177+ codec->time_base.num, codec->time_base.den, INT_MAX);
21762178 }else
21772179 codec->time_base = ist->st->time_base;
21782180 switch(codec->codec_type) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t