[SCM] libav/experimental: flacdec: change variable-length array to fixed length
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:50:14 UTC 2013
The following commit has been merged in the experimental branch:
commit 8313e17976053fee193f79f3278ba656022d4233
Author: Måns Rullgård <mans at mansr.com>
Date: Wed Aug 19 21:59:36 2009 +0000
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
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 4ff7fae..d3a8b33 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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list