From: Yusuke Nakamura Date: Mon, 29 Mar 2010 04:51:02 +0000 (+0900) Subject: Fix 10L: Remove needless error check X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ae834029cad9401b30cd529cf8c84db41aac776d;p=x264.git Fix 10L: Remove needless error check This error check was for cfr input + --timebase, but that doesn't happen, and brings about a bug with vfr input. --- diff --git a/x264.c b/x264.c index f00afcec..43d3035b 100644 --- a/x264.c +++ b/x264.c @@ -1214,12 +1214,6 @@ generic_option: } opt->timebase_convert_multiplier = ((double)i_user_timebase_den / param->i_timebase_den) * ((double)param->i_timebase_num / i_user_timebase_num); - if( opt->timebase_convert_multiplier < 1 ) - { - fprintf( stderr, "x264 [error]: timebase you specified will generate nonmonotonic pts: %d/%d\n", - i_user_timebase_num, i_user_timebase_den ); - return -1; - } param->i_timebase_num = i_user_timebase_num; param->i_timebase_den = i_user_timebase_den; param->b_vfr_input = 1;