]> granicus.if.org Git - libvpx/commitdiff
Fix VS build issue.
authorPaul Wilkins <paulwilkins@google.com>
Mon, 8 Sep 2014 22:27:33 +0000 (15:27 -0700)
committerPaul Wilkins <paulwilkins@google.com>
Mon, 8 Sep 2014 22:29:33 +0000 (15:29 -0700)
Compile fails when CONFIG_INTERNAL_STATS
flag is set.

Change-Id: Iba7701c058169ca3fc0b9008619ac55a1fe1a8b6

vp9/encoder/vp9_encoder.c

index 2ca91b977c687b075b87ad1875f25869a1217ced..b6e606d780805d1eac7d4f34994c26862352dbb7 100644 (file)
@@ -2233,9 +2233,11 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
 #endif
 
 #if CONFIG_INTERNAL_STATS
-  int i;
-  for (i = 0; i < MAX_MODES; ++i)
-    cpi->mode_chosen_counts[i] = 0;
+  {
+    int i;
+    for (i = 0; i < MAX_MODES; ++i)
+      cpi->mode_chosen_counts[i] = 0;
+  }
 #endif
 
   vp9_set_speed_features(cpi);