summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorHien Ho <hienho@google.com>2019-06-19 16:41:22 -0700
committerHien Ho <hienho@google.com>2019-06-28 20:27:38 +0000
commit7cb611d221c7161c9c3af1d3496c64651ec5c003 (patch)
tree079206fa6b812aedaeef0451152868cee04e29bf /vp8
parentaecad5a3131dc0a0ab427c50fdcb70eba22740e3 (diff)
downloadlibvpx-7cb611d221c7161c9c3af1d3496c64651ec5c003.tar
libvpx-7cb611d221c7161c9c3af1d3496c64651ec5c003.tar.gz
libvpx-7cb611d221c7161c9c3af1d3496c64651ec5c003.tar.bz2
libvpx-7cb611d221c7161c9c3af1d3496c64651ec5c003.zip
vp8/encoder/boolhuff: fix integer sanitizer warnings
from sanitizer run: runtime error: implicit conversion from type 'unsigned int' of value 256 (32-bit, unsigned) to type 'unsigned char' changed the value to 0 (8-bit, unsigned) BUG=webm:1615 Change-Id: I9321bbd58a305419bc8669ecd7594adc47e8b116
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/boolhuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h
index 8ac0a2cc4..8cc61bdd4 100644
--- a/vp8/encoder/boolhuff.h
+++ b/vp8/encoder/boolhuff.h
@@ -92,7 +92,7 @@ static void vp8_encode_bool(BOOL_CODER *bc, int bit, int probability) {
}
validate_buffer(bc->buffer + bc->pos, 1, bc->buffer_end, bc->error);
- bc->buffer[bc->pos++] = (lowvalue >> (24 - offset));
+ bc->buffer[bc->pos++] = (lowvalue >> (24 - offset) & 0xff);
lowvalue <<= offset;
shift = count;