diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-25 02:50:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-25 02:50:58 +0100 |
commit | 7b9d8703f35585b065c32194b52131b7dd90c710 (patch) | |
tree | 87613cf389d4a645e6e23a116ddf043bf04be377 | |
parent | 3d3b603f7f834dad919a3334506a1e5414d7368a (diff) | |
download | ffmpeg-7b9d8703f35585b065c32194b52131b7dd90c710.tar.gz |
adpcmdec: fix "warning: array subscript is above array bounds"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/adpcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index c21753af48..19289e8021 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -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; |