From 95ce7c6452b6c8e13de20799635d78e2888f3a1e Mon Sep 17 00:00:00 2001 From: Hien Ho Date: Fri, 28 Jun 2019 10:49:05 -0700 Subject: [PATCH] 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 --- vp9/encoder/vp9_rdopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 65b94357d..0e74de413 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -3450,7 +3450,7 @@ void vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, TileDataEnc *tile_data, 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; } } -- 2.40.0