提交 77524ee2 编写于 作者: M Michael Niedermayer

avformat/utils: Be slightly more tolerant with fps vs. stream timebase

Fixes regression with ticket2451
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 1b659101
......@@ -3096,7 +3096,8 @@ void ff_rfps_calculate(AVFormatContext *ic)
for (j= 0; j<MAX_STD_TIMEBASES; j++) {
int k;
if (st->info->codec_info_duration && st->info->codec_info_duration*av_q2d(st->time_base) < (1001*12.0)/get_std_framerate(j))
if (st->info->codec_info_duration &&
st->info->codec_info_duration*av_q2d(st->time_base) < (1001*11.5)/get_std_framerate(j))
continue;
if (!st->info->codec_info_duration && get_std_framerate(j) < 1001*12)
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册