diff options
author | Måns Rullgård <mans@mansr.com> | 2009-08-19 21:59:36 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-08-19 21:59:36 +0000 |
commit | 8313e17976053fee193f79f3278ba656022d4233 (patch) | |
tree | 70a35aabc992f9e698fc661e5fa352e371f7d0f2 /libavcodec/flacdec.c | |
parent | 64d39b7c7630e15127f1ae2e1c8dba72265ca5c6 (diff) | |
download | ffmpeg-8313e17976053fee193f79f3278ba656022d4233.tar.gz |
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.
Originally committed as revision 19669 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r-- | libavcodec/flacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 4ff7fae057..d3a8b3327d 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -358,7 +358,7 @@ static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order) { int i, j; int coeff_prec, qlevel; - int coeffs[pred_order]; + int coeffs[32]; int32_t *decoded = s->decoded[channel]; /* warm up samples */ |