shithub: libvpx

Download patch

ref: 622451623590b8470a8c6fbaae6f0955e0e48451
parent: 15e95086e2b73bd55c633aaa81ac30a45060f8d9
parent: 76c1896fda3ef3e0847b39882bf6143af245df06
author: Tom Finegan <tomfinegan@google.com>
date: Thu Feb 20 06:57:36 EST 2014

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

--- a/vp9/encoder/vp9_vaq.c
+++ b/vp9/encoder/vp9_vaq.c
@@ -144,5 +144,5 @@
   vp9_clear_system_state();
 
   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);
 }
--