Commit 7811039d authored by Tom Finegan's avatar Tom Finegan

vp9_firstpass: Fix MSVC data loss warning.

Change-Id: I5307fe85ee081fbcfdf55a974f7eba1e0070c723
parent 7af0e984
......@@ -2402,8 +2402,8 @@ void vp9_twopass_postencode_update(VP9_COMP *cpi) {
const double progress =
(double)(cpi->twopass.stats_in - cpi->twopass.stats_in_start) /
(cpi->twopass.stats_in_end - cpi->twopass.stats_in_start);
const int bits_used = progress * rc->this_frame_target +
(1.0 - progress) * rc->projected_frame_size;
const int bits_used = (int)(progress * rc->this_frame_target +
(1.0 - progress) * rc->projected_frame_size);
#endif
cpi->twopass.bits_left -= bits_used;
......
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