Browse Source

flacenc: convert VLA to fixed size

Originally committed as revision 23744 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Måns Rullgård 15 years ago
parent
commit
79aec75792
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/flacenc.c

+ 1
- 1
libavcodec/flacenc.c View File

@@ -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;


Loading…
Cancel
Save