ref: 95ce7c6452b6c8e13de20799635d78e2888f3a1e
parent: 59b7f2f36f534ec53caba6ee049bfafca02511c6
author: Hien Ho <[email protected]>
date: Fri Jun 28 06:49:05 EDT 2019
vp9_rdopt: fix integer sanitizer warnings implicit conversion from type 'int' of value -9 (32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 247 (8-bit, unsigned) BUG=webm:1615 Change-Id: Ic2254ef4312f349ee38ec6e12a56b2cd5714b101
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3450,7 +3450,7 @@
if (cpi->rc.is_src_frame_alt_ref) {
if (sf->alt_ref_search_fp) {
mode_skip_mask[ALTREF_FRAME] = 0;
- ref_frame_skip_mask[0] = ~(1 << ALTREF_FRAME);
+ ref_frame_skip_mask[0] = ~(1 << ALTREF_FRAME) & 0xff;
ref_frame_skip_mask[1] = SECOND_REF_FRAME_MASK;
}
}