vp10/ratectrl.c: fix implicit float conversion float->int as reported by -Wfloat-conversion Change-Id: I3c55990821d922bda7a7600c00ae8d5dcc3cee94
diff --git a/vp10/encoder/ratectrl.c b/vp10/encoder/ratectrl.c index 6157c9e..4d49f0d 100644 --- a/vp10/encoder/ratectrl.c +++ b/vp10/encoder/ratectrl.c
@@ -1686,7 +1686,7 @@ // 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); }