ref: 40477f1f70556cbd17c7296a332e8014129baa21
parent: 754eb9510559d3bf44183d0ef33c7191d54c3a57
author: Yaowu Xu <[email protected]>
date: Fri Jun 17 13:07:06 EDT 2016
Fix ubsan warning: vp9/encoder/vp9_encodeframe.c BUG=webm:1219 Change-Id: I29b896c7f61abf871d7853b1d8200aa5a9f6a95c
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -134,7 +134,7 @@
0, &sse);
break;
}
- return ROUND_POWER_OF_TWO(var, num_pels_log2_lookup[bs]);
+ return ROUND_POWER_OF_TWO((int64_t)var, num_pels_log2_lookup[bs]);
}
#endif // CONFIG_VP9_HIGHBITDEPTH