Commit 01c05a79 authored by Loren Merritt's avatar Loren Merritt
Browse files

cli: arithmetic overflow in bitrate printing



git-svn-id: svn://svn.videolan.org/x264/trunk@356 df754926-b1dd-0310-bc7b-ec298dee348c
parent db67b818
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment