alac: change VLAs to fixed size
authorMåns Rullgård <mans@mansr.com>
Thu, 24 Jun 2010 08:26:40 +0000 (08:26 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 24 Jun 2010 08:26:40 +0000 (08:26 +0000)
Originally committed as revision 23751 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alac.c

index 50fc7a1..07b03c1 100644 (file)
@@ -547,11 +547,11 @@ static int alac_decode_frame(AVCodecContext *avctx,
 
     if (!isnotcompressed) {
         /* so it is compressed */
-        int16_t predictor_coef_table[channels][32];
-        int predictor_coef_num[channels];
-        int prediction_type[channels];
-        int prediction_quantitization[channels];
-        int ricemodifier[channels];
+        int16_t predictor_coef_table[MAX_CHANNELS][32];
+        int predictor_coef_num[MAX_CHANNELS];
+        int prediction_type[MAX_CHANNELS];
+        int prediction_quantitization[MAX_CHANNELS];
+        int ricemodifier[MAX_CHANNELS];
         int i, chan;
 
         interlacing_shift = get_bits(&alac->gb, 8);