# HG changeset patch # User michael # Date 1175981419 0 # Node ID ec3c56e6185bd4b6e38164e79a00ad468441ed60 # Parent 30ac525752b97efa2ef1696722c01601df4df0e7 simplify diff -r 30ac525752b9 -r ec3c56e6185b adpcm.c --- a/adpcm.c Sat Apr 07 21:27:58 2007 +0000 +++ b/adpcm.c Sat Apr 07 21:30:19 2007 +0000 @@ -1332,10 +1332,8 @@ table[0][i] = get_sbits(&gb, 16); /* Initialize the previous sample. */ - for (ch = 0; ch < 2; ch++) { - prev[ch][0] = get_sbits(&gb, 16); - prev[ch][1] = get_sbits(&gb, 16); - } + for (i = 0; i < 4; i++) + prev[0][i] = get_sbits(&gb, 16); if (samplecnt >= (samples_end - samples) / (st + 1)) { av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n");