1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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

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