summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-07 21:30:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-07 21:30:19 +0000
commit204424a4c747d1257a4180d90f5249a8ef9c71e6 (patch)
tree570cbc50cd7eed82526f9928d888575df6001a7e /libavcodec/adpcm.c
parentb736a365bede6c270ff9084af2602d8fa7faf8c9 (diff)
downloadffmpeg-204424a4c747d1257a4180d90f5249a8ef9c71e6.tar.gz
simplify
Originally committed as revision 8655 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 085d1a149c..d24acbc145 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -1332,10 +1332,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
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");