Commit 885872f8 authored by Yunqing Wang's avatar Yunqing Wang

Fix Visual Studio build warning

Fixed warning C4244: '-=' : conversion from 'const double' to 'int',
possible loss of data.

Change-Id: Ic4691346037767b244e7f71248c2f871f92002f3
parent 9c2ed00c
......@@ -835,8 +835,8 @@ static int get_active_cq_level_two_pass(
int active_cq_level = oxcf->cq_level;
if (oxcf->rc_mode == VPX_CQ) {
if (twopass->mb_smooth_pct > SMOOTH_PCT_MIN) {
active_cq_level -= (twopass->mb_smooth_pct - SMOOTH_PCT_MIN) /
SMOOTH_PCT_DIV;
active_cq_level -= (int)((twopass->mb_smooth_pct - SMOOTH_PCT_MIN) /
SMOOTH_PCT_DIV);
active_cq_level = VPXMAX(active_cq_level, 0);
}
if (rc->total_target_bits > 0) {
......
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