Commit 79aec757 authored by Måns Rullgård's avatar Måns Rullgård

flacenc: convert VLA to fixed size

Originally committed as revision 23744 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 47ba7874
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment