shithub: libvpx

Download patch

ref: b04e87c6abd33faf688d68611429dc155c4bff0f
parent: c30838b383fcbbad09c77aa71968e2d675b9fddd
parent: e5904465559ad1a417ad8794ead147b985278411
author: Debargha Mukherjee <debargha@google.com>
date: Wed Aug 8 12:12:23 EDT 2012

Merge "a tiny fix for MSVC build" into experimental

--- a/vp8/common/filter.c
+++ b/vp8/common/filter.c
@@ -628,7 +628,12 @@
     (kInterp_Extend - 1) +     output_height + kInterp_Extend;
   const unsigned int max_intermediate_height =
     (kInterp_Extend - 1) + filter_max_height + kInterp_Extend;
+#ifdef _MSC_VER
+  // MSVC does not support C99 style declaration
+  unsigned char intermediate_buffer[23 * 16];
+#else
   unsigned char intermediate_buffer[max_intermediate_height * filter_max_width];
+#endif
   const int intermediate_next_stride = 1 - intermediate_height * output_width;
 
   // Horizontal pass (src -> transposed intermediate).