]> granicus.if.org Git - libvpx/commitdiff
a tiny fix for MSVC build
authorYaowu Xu <yaowu@google.com>
Wed, 8 Aug 2012 21:41:37 +0000 (14:41 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 8 Aug 2012 21:41:37 +0000 (14:41 -0700)
Change-Id: Ib23b0711a4690e1edff3131ce48527b6805877fb

vp8/common/filter.c

index dba5a320205cbac32388bee1a33931829f681c38..28027442240913499d0673c1fe8f86d3ba39d2b7 100644 (file)
@@ -628,7 +628,12 @@ static void vp8_filter_block2d_8_c
     (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).