Commit 3f5a2a8e authored by James Zern's avatar James Zern

vp10/ratectrl.c: fix implicit float conversion

float->int as reported by -Wfloat-conversion

Change-Id: I3c55990821d922bda7a7600c00ae8d5dcc3cee94
parent d2fa9fe8
......@@ -1686,7 +1686,7 @@ static void vbr_rate_correction(VP10_COMP *cpi, int *this_frame_target) {
// How far through the clip are we.
// This number is used to damp the per frame rate correction.
// Range 0 - 1.0
if (cpi->twopass.total_stats.count) {
if (cpi->twopass.total_stats.count != 0.) {
position_factor = sqrt((double)cpi->common.current_video_frame /
cpi->twopass.total_stats.count);
}
......
Markdown is supported
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