Use fixed-length array in revert_mclms()

This commit is contained in:
Benjamin Larsson 2012-02-16 20:09:01 +06:00 committed by Mashiat Sarker Shakkhar
parent d1ea26f640
commit 7f215e3e72
1 changed files with 1 additions and 1 deletions

View File

@ -885,7 +885,7 @@ static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
static void revert_mclms(WmallDecodeCtx *s, int tile_size)
{
int icoef, pred[s->num_channels];
int icoef, pred[WMALL_MAX_CHANNELS] = {0};
for (icoef = 0; icoef < tile_size; icoef++) {
mclms_predict(s, icoef, pred);
mclms_update(s, icoef, pred);