Match prev_ to number_of_layers
authorJohann <johannkoenig@google.com>
Sat, 11 Jun 2016 01:00:34 +0000 (18:00 -0700)
committerJohann Koenig <johannkoenig@google.com>
Tue, 14 Jun 2016 22:57:14 +0000 (22:57 +0000)
Defined as unsigned in VP8_CONFIG

Cleans warning in Android build:
comparison of integers of different signs: 'unsigned int' and 'int'
if (cpi->oxcf.number_of_layers != prev_number_of_layers)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~
Change-Id: I969e64cd2bfda6e61c564476dbd35b892b177646

vp8/encoder/onyx_if.c

index 5e3d478..66c3f42 100644 (file)
@@ -1523,7 +1523,8 @@ static void update_layer_contexts (VP8_COMP *cpi)
 void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf)
 {
     VP8_COMMON *cm = &cpi->common;
-    int last_w, last_h, prev_number_of_layers;
+    int last_w, last_h;
+    unsigned int prev_number_of_layers;
 
     if (!cpi)
         return;