changeset 11940:1d6362654d4c libavcodec

alac: change VLAs to fixed size
author mru
date Thu, 24 Jun 2010 08:26:40 +0000
parents ef338bd70180
children 9e12316c508a
files alac.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/alac.c	Thu Jun 24 07:44:50 2010 +0000
+++ b/alac.c	Thu Jun 24 08:26:40 2010 +0000
@@ -547,11 +547,11 @@
 
     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);