From: Yusuke Nakamura Date: Sat, 30 Jan 2010 21:53:01 +0000 (-0800) Subject: Fix regression in r1406 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=fcf70c2f9853d74ac077a7af016e28eef05e2f5a;p=x264.git Fix regression in r1406 Bitrate was printed incorrectly for some input framerates. --- diff --git a/x264.c b/x264.c index 7098b0f1..58bc1f43 100644 --- a/x264.c +++ b/x264.c @@ -1458,7 +1458,7 @@ static int Encode( x264_param_t *param, cli_opt_t *opt ) int64_t second_largest_pts = -1; int64_t ticks_per_frame; double duration; - int prev_timebase_den = param->i_timebase_den; + int prev_timebase_den = param->i_timebase_den / gcd( param->i_timebase_num, param->i_timebase_den ); int dts_compress_multiplier; opt->b_progress &= param->i_log_level < X264_LOG_DEBUG;