]> granicus.if.org Git - libx264/commitdiff
cli: arithmetic overflow in bitrate printing
authorLoren Merritt <pengvado@videolan.org>
Thu, 3 Nov 2005 06:53:59 +0000 (06:53 +0000)
committerLoren Merritt <pengvado@videolan.org>
Thu, 3 Nov 2005 06:53:59 +0000 (06:53 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@356 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index 1a9cf963e470068266b9c63556cd88ec8da2acfc..2a799065abbd77d35e8836d9c7c76bb5b297fd5d 100644 (file)
--- 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;