changeset 10066:3fca809be8ed libavcodec

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.
author mru
date Wed, 19 Aug 2009 21:59:36 +0000
parents 42a126c78744
children 685af2860d80
files flacdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Mon Aug 17 02:23:53 2009 +0000
+++ b/flacdec.c	Wed Aug 19 21:59:36 2009 +0000
@@ -358,7 +358,7 @@
 {
     int i, j;
     int coeff_prec, qlevel;
-    int coeffs[pred_order];
+    int coeffs[32];
     int32_t *decoded = s->decoded[channel];
 
     /* warm up samples */