summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index efe12b573e..8ebceb9fd2 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -1328,9 +1328,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
get_bits_long(&gb, 32); /* Channel size */
samplecnt = get_bits_long(&gb, 32);
- for (ch = 0; ch < 2; ch++)
- for (i = 0; i < 16; i++)
- table[ch][i] = get_sbits(&gb, 16);
+ for (i = 0; i < 32; i++)
+ table[0][i] = get_sbits(&gb, 16);
/* Initialize the previous sample. */
for (ch = 0; ch < 2; ch++) {