shithub: libvpx

Download patch

ref: 6df142e2ab4c10f7f57e76037e68f99ccb789852
parent: 968a5d6bc2c54c8ec8e01572009abfe0a1f3b5c1
author: James Zern <jzern@google.com>
date: Mon Jun 5 18:52:58 EDT 2017

vp9_mcomp,get_cost_surf_min: quiet conversion warning

visual studio will warn if a 32-bit shift is implicitly converted to 64.
in this case integer storage is enough for the result.
since:
f3a9ae5ba Fix ubsan failure in vp9_mcomp.c.

Change-Id: I7e0e199ef8d3c64e07b780c8905da8c53c1d09fc

--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -383,7 +383,7 @@
   const int64_t y0 = cost_list[1] - 2 * (int64_t)cost_list[0] + cost_list[3];
   const int64_t x1 = (int64_t)cost_list[4] - cost_list[2];
   const int64_t y1 = cost_list[4] - 2 * (int64_t)cost_list[0] + cost_list[2];
-  const int64_t b = 1 << (bits - 1);
+  const int b = 1 << (bits - 1);
   *ic = (int)divide_and_round(x0 * b, y0);
   *ir = (int)divide_and_round(x1 * b, y1);
 }