[FFmpeg-cvslog] r19669 - trunk/libavcodec/flacdec.c

mru subversion
Wed Aug 19 23:59:37 CEST 2009


Author: mru
Date: Wed Aug 19 23:59:36 2009
New Revision: 19669

Log:
flacdec: change variable-length array to fixed length

pred_order can never exceed 32, so always allocating that amount is safe
and not very wasteful.

Modified:
   trunk/libavcodec/flacdec.c

Modified: trunk/libavcodec/flacdec.c
==============================================================================
--- trunk/libavcodec/flacdec.c	Wed Aug 19 10:15:32 2009	(r19668)
+++ trunk/libavcodec/flacdec.c	Wed Aug 19 23:59:36 2009	(r19669)
@@ -358,7 +358,7 @@ static int decode_subframe_lpc(FLACConte
 {
     int i, j;
     int coeff_prec, qlevel;
-    int coeffs[pred_order];
+    int coeffs[32];
     int32_t *decoded = s->decoded[channel];
 
     /* warm up samples */



More information about the ffmpeg-cvslog mailing list