[SCM] libav/experimental: alac: change VLAs to fixed size

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:09:10 UTC 2013


The following commit has been merged in the experimental branch:
commit 986f143a388bdeb6d641df0c4cf7a76fbecdeb41
Author: Måns Rullgård <mans at mansr.com>
Date:   Thu Jun 24 08:26:40 2010 +0000

    alac: change VLAs to fixed size
    
    Originally committed as revision 23751 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 50fc7a1..07b03c1 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list