diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-23 21:22:56 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-23 21:22:56 +0000 |
commit | 79aec7579252c74834e0c1aae91ff835b7a2abe8 (patch) | |
tree | 59a7c56482a1d8b7055f67dfa274c848429ef920 /libavcodec | |
parent | 47ba7874427fd7b6a93777f9ae9a1a646f9cceda (diff) | |
download | ffmpeg-79aec7579252c74834e0c1aae91ff835b7a2abe8.tar.gz |
flacenc: convert VLA to fixed size
Originally committed as revision 23744 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 89d40d5ac2..c6729f152a 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -787,7 +787,7 @@ static int encode_residual(FlacEncodeContext *ctx, int ch) omethod == ORDER_METHOD_4LEVEL || omethod == ORDER_METHOD_8LEVEL) { int levels = 1 << omethod; - uint32_t bits[levels]; + uint32_t bits[1 << ORDER_METHOD_8LEVEL]; int order; int opt_index = levels-1; opt_order = max_order-1; |