Use fixed-length array in revert_mclms()

pull/3/merge
Benjamin Larsson 13 years ago committed by Mashiat Sarker Shakkhar
parent d1ea26f640
commit 7f215e3e72
  1. 2
      libavcodec/wmalosslessdec.c

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

Loading…
Cancel
Save