]> granicus.if.org Git - libvpx/commitdiff
vp8_set_maps.c: Silence signed/unsigned mismatch MSVC warnings.
authorTom Finegan <tomfinegan@google.com>
Thu, 20 Feb 2014 00:13:15 +0000 (16:13 -0800)
committerTom Finegan <tomfinegan@google.com>
Thu, 20 Feb 2014 00:13:15 +0000 (16:13 -0800)
Use unsigned loop counters in set_roi_map() and set_active_map().

Change-Id: I9bbaed38b51ef73b82ba4ad4c4bc18ca5d2399f9

examples/vp8_set_maps.c

index ec9bc65f599450d3c785ad34dbe9f32da8f96ed0..f3cc9a7687ef992b56a9c8b6a011fe1c8861b0d4 100644 (file)
@@ -62,7 +62,7 @@ void usage_exit() {
 
 static void set_roi_map(const vpx_codec_enc_cfg_t *cfg,
                         vpx_codec_ctx_t *codec) {
-  int i;
+  unsigned int i;
   vpx_roi_map_t roi = {0};
 
   roi.rows = cfg->g_h / 16;
@@ -95,7 +95,7 @@ static void set_roi_map(const vpx_codec_enc_cfg_t *cfg,
 
 static void set_active_map(const vpx_codec_enc_cfg_t *cfg,
                            vpx_codec_ctx_t *codec) {
-  int i;
+  unsigned int i;
   vpx_active_map_t map = {0};
 
   map.rows = cfg->g_h / 16;