Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext **output_files, · 2172 unmodified lines | ||
| 2173 | 2173 | 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){ |
| 2174 | 2174 | codec->time_base = icodec->time_base; |
| 2175 | 2175 | 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); | |
| 2176 | 2178 | }else |
| 2177 | 2179 | codec->time_base = ist->st->time_base; |
| 2178 | 2180 | switch(codec->codec_type) { |