Commit 76c1896f authored by Tom Finegan's avatar Tom Finegan
Browse files

vp9_vaq.c: Cast result of round() to int to silence warning caused by clamp() call.

clamp() wants an int, round returns a double, warning! Too bad we can't just use lrint.

Change-Id: I9c08289dde742fac0d673df8559a1892edcd1bc7
Showing with 1 addition and 1 deletion
......@@ -144,5 +144,5 @@ int vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs) {
vp9_clear_system_state(); // __asm emms;
energy = 0.9 * (log(var + 1.0) - 10.0);
return clamp(round(energy), ENERGY_MIN, ENERGY_MAX);
return clamp((int)round(energy), ENERGY_MIN, ENERGY_MAX);
}
Supports Markdown
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