shithub: libvpx

Download patch

ref: c1d630d5c80737c8b1b4dbe1c3d6c763c34583e1
parent: 9dbbbd181257cc2a62664a6f52197d466c2c108e
parent: 1979d415405a92503aa873bdd55a9b7d2e5275de
author: Hien Ho <hienho@google.com>
date: Fri Aug 2 11:41:17 EDT 2019

Merge "vp9_svc_layercontext.c: fix integer sanitizer warnings"

--- a/vp9/encoder/vp9_svc_layercontext.c
+++ b/vp9/encoder/vp9_svc_layercontext.c
@@ -57,8 +57,8 @@
   svc->simulcast_mode = 0;
 
   for (i = 0; i < REF_FRAMES; ++i) {
-    svc->fb_idx_spatial_layer_id[i] = -1;
-    svc->fb_idx_temporal_layer_id[i] = -1;
+    svc->fb_idx_spatial_layer_id[i] = 0xff;
+    svc->fb_idx_temporal_layer_id[i] = 0xff;
     svc->fb_idx_base[i] = 0;
   }
   for (sl = 0; sl < oxcf->ss_number_layers; ++sl) {