ref: 1979d415405a92503aa873bdd55a9b7d2e5275de
parent: 59b7f2f36f534ec53caba6ee049bfafca02511c6
author: Hien Ho <[email protected]>
date: Tue Jul 30 07:28:03 EDT 2019
vp9_svc_layercontext.c: fix integer sanitizer warnings implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 255 (8-bit, unsigned BUG=webm:1615 Change-Id: If507e73aea4dccd3914b6470f8d15db3b67300ce
--- 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) {