shithub: libvpx

Download patch

ref: f24054574d173138a5cf328d14c6170830f6d669
parent: 89da176473fa9ed3a9b670dba2ea92259dc34da3
author: Paul Wilkins <[email protected]>
date: Mon Sep 8 11:27:33 EDT 2014

Fix VS build issue.

Compile fails when CONFIG_INTERNAL_STATS
flag is set.

Change-Id: Iba7701c058169ca3fc0b9008619ac55a1fe1a8b6

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2233,9 +2233,11 @@
 #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);