summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-07 21:22:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-07 21:22:50 +0000
commit11d662666dab3e3a74b4cee7cae569f7ae70bce0 (patch)
treedb901cc338d82afbdcf16ef8f95330e2c8335272 /libavcodec/adpcm.c
parentd9ddac2579863101a439bbee573ee4afa149dfaf (diff)
simplify
Originally committed as revision 8653 to svn://svn.ffmpeg.org/ffmpeg/trunk
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++) {