[x264-devel] commit: Fix regression in r1406 (Yusuke Nakamura )

git version control git at videolan.org
Sat Jan 30 22:56:59 CET 2010


x264 | branch: master | Yusuke Nakamura <muken.the.vfrmaniac at gmail.com> | Sat Jan 30 13:53:01 2010 -0800| [fcf70c2f9853d74ac077a7af016e28eef05e2f5a] | committer: Jason Garrett-Glaser 

Fix regression in r1406
Bitrate was printed incorrectly for some input framerates.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=fcf70c2f9853d74ac077a7af016e28eef05e2f5a
---

 x264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/x264.c b/x264.c
index 7098b0f..58bc1f4 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;



More information about the x264-devel mailing list