shithub: libvpx

Download patch

ref: 0af40df746b47057e3f416fbfc49d83e324741b4
parent: e46820c693d0dc01685841cfc704c16dbac48e80
parent: 95ce7c6452b6c8e13de20799635d78e2888f3a1e
author: Hien Ho <[email protected]>
date: Mon Aug 12 14:28:11 EDT 2019

Merge "vp9_rdopt: fix integer sanitizer warnings"

--- 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;
     }
   }