Commit 15e95086 authored by Tom Finegan's avatar Tom Finegan

vp9_encodeframe.c: Silence totalrate assignment warning with a cast.

Cast result of round() to int.

Change-Id: I4982886ad4e7657b4c40d21bd850d31690a68c28
parent fd402e13
...@@ -714,7 +714,7 @@ static void rd_pick_sb_modes(VP9_COMP *cpi, const TileInfo *const tile, ...@@ -714,7 +714,7 @@ static void rd_pick_sb_modes(VP9_COMP *cpi, const TileInfo *const tile,
x->rdmult = orig_rdmult; x->rdmult = orig_rdmult;
if (*totalrate != INT_MAX) { if (*totalrate != INT_MAX) {
vp9_clear_system_state(); vp9_clear_system_state();
*totalrate = round(*totalrate * rdmult_ratio); *totalrate = (int)round(*totalrate * rdmult_ratio);
} }
} }
else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) { else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) {
......
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