From: Loren Merritt Date: Thu, 3 Nov 2005 06:53:59 +0000 (+0000) Subject: cli: arithmetic overflow in bitrate printing X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=01c05a79022c2349ddba2f3e101f8a1d26500906;p=x264.git cli: arithmetic overflow in bitrate printing git-svn-id: svn://svn.videolan.org/x264/trunk@356 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.c b/x264.c index 1a9cf963..2a799065 100644 --- a/x264.c +++ b/x264.c @@ -1123,7 +1123,8 @@ static int Encode( x264_param_t *param, cli_opt_t *opt ) (double)( i_end - i_start ); fprintf( stderr, "encoded %d frames, %.2f fps, %.2f kb/s\n", i_frame, fps, - (double) i_file * 8 * param->i_fps_num / ( param->i_fps_den * i_frame * 1000 ) ); + (double) i_file * 8 * param->i_fps_num / + ( (double) param->i_fps_den * i_frame * 1000 ) ); } return 0;