shithub: libvpx

Download patch

ref: f6d13e7be5c4d10015164a6d06e2e5688cf9ae9c
parent: a68b24fdeeab207219ac4631a7ddd46e6f13fbbd
parent: 36a0c7ffe3ec21d3f84bd9ec1f913a62d6215d3a
author: Alex Converse <[email protected]>
date: Thu Apr 28 12:26:37 EDT 2016

Merge "bitreader: remove an unsigned overflow."

--- a/vpx_dsp/bitreader.c
+++ b/vpx_dsp/bitreader.c
@@ -69,7 +69,7 @@
       buffer += (bits >> 3);
       value = r->value | (nv << (shift & 0x7));
   } else {
-    const int bits_over = (int)(shift + CHAR_BIT - bits_left);
+    const int bits_over = (int)(shift + CHAR_BIT - (int)bits_left);
     int loop_end = 0;
     if (bits_over >= 0) {
       count += LOTS_OF_BITS;