projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ba787
)
flacenc: convert VLA to fixed size
author
Måns Rullgård
<mans@mansr.com>
Wed, 23 Jun 2010 21:22:56 +0000
(21:22 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Wed, 23 Jun 2010 21:22:56 +0000
(21:22 +0000)
Originally committed as revision 23744 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/flacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/flacenc.c
b/libavcodec/flacenc.c
index
89d40d5
..
c6729f1
100644
(file)
--- 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;