From a424adb406070fe3ca9be7d02111a9d3b26d25f3 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Sat, 30 Jan 2010 13:53:01 -0800 Subject: [PATCH] Fix regression in r1406 Bitrate was printed incorrectly for some input framerates. --- x264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0