Commit 7b9d8703 authored by Michael Niedermayer's avatar Michael Niedermayer

adpcmdec: fix "warning: array subscript is above array bounds"

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3d3b603f
......@@ -1190,7 +1190,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
/* Initialize the previous sample. */
for (i = 0; i < 4; i++)
prev[0][i] = (int16_t)bytestream_get_be16(&src);
prev[i>>1][i&1] = (int16_t)bytestream_get_be16(&src);
for (ch = 0; ch <= st; ch++) {
samples = (short *)c->frame.data[0] + ch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment