shithub: libvpx

Download patch

ref: e5904465559ad1a417ad8794ead147b985278411
parent: 2056f7e0d8d3fc4fd05e53d199dc15b8779bcb64
author: Yaowu Xu <yaowu@google.com>
date: Wed Aug 8 10:41:37 EDT 2012

a tiny fix for MSVC build

Change-Id: Ib23b0711a4690e1edff3131ce48527b6805877fb

--- 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).