aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpc7.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-11-09 13:40:44 -0800
committerAlex Converse <alex.converse@gmail.com>2011-11-10 09:30:49 -0800
commit88b2436911ea9d629d0bc380afc6570eecef84bd (patch)
tree6ad94ea317680c04759bf15b270ac1191deb06b3 /libavcodec/mpc7.c
parent164fca39bdd59896b43ea4a4df31195ac0988fa5 (diff)
downloadffmpeg-88b2436911ea9d629d0bc380afc6570eecef84bd.tar.gz
mpc7: Fix memset call in mpc7_decode_frame function
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r--libavcodec/mpc7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c
index 6f79c7b51e..60b9f525c2 100644
--- a/libavcodec/mpc7.c
+++ b/libavcodec/mpc7.c
@@ -200,7 +200,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx,
int off, out_size;
int bits_used, bits_avail;
- memset(bands, 0, sizeof(bands));
+ memset(bands, 0, sizeof(*bands) * (c->maxbands + 1));
if(buf_size <= 4){
av_log(avctx, AV_LOG_ERROR, "Too small buffer passed (%i bytes)\n", buf_size);
return AVERROR(EINVAL);