qdm2: make a table static const
authorMans Rullgard <mans@mansr.com>
Wed, 11 Apr 2012 12:03:25 +0000 (13:03 +0100)
committerMans Rullgard <mans@mansr.com>
Thu, 12 Apr 2012 09:59:23 +0000 (10:59 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/qdm2.c

index b236977..8d9d281 100644 (file)
@@ -499,7 +499,7 @@ static void fix_coding_method_array (int sb, int channels, sb_int8_array coding_
     int j,k;
     int ch;
     int run, case_val;
-    int switchtable[23] = {0,5,1,5,5,5,5,5,2,5,5,5,5,5,5,5,3,5,5,5,5,5,4};
+    static const int switchtable[23] = {0,5,1,5,5,5,5,5,2,5,5,5,5,5,5,5,3,5,5,5,5,5,4};
 
     for (ch = 0; ch < channels; ch++) {
         for (j = 0; j < 64; ) {