shithub: libvpx

Download patch

ref: ccc5a6c29af9f4a64934c2e7cfdb66237612b334
parent: 70041462c8a667b0ffda1328f4eb9e0770aed20a
author: Hien Ho <hienho@google.com>
date: Tue Aug 13 12:32:23 EDT 2019

vp8/encoder/vp8_quantize: fix int sanitizer warnings

 implicit conversion from type 'int' of value 65536
 (32-bit, signed) to type 'short' changed the value to 0 (16-bit, signed)

 BUG=webm:1615

Change-Id: I6a04e57bd3272934de9c75fab60a1620ff6c3636

--- a/vp8/encoder/vp8_quantize.c
+++ b/vp8/encoder/vp8_quantize.c
@@ -174,8 +174,6 @@
   } else {
     *quant = (1 << 16) / d;
     *shift = 0;
-    /* use multiplication and constant shift by 16 */
-    *shift = 1 << (16 - *shift);
   }
 }