git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
164fca3
)
mpc7: Fix memset call in mpc7_decode_frame function
author
Alex Converse
<alex.converse@gmail.com>
Wed, 9 Nov 2011 21:40:44 +0000
(13:40 -0800)
committer
Alex Converse
<alex.converse@gmail.com>
Thu, 10 Nov 2011 17:30:49 +0000
(09:30 -0800)
libavcodec/mpc7.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpc7.c
b/libavcodec/mpc7.c
index
6f79c7b
..
60b9f52
100644
(file)
--- 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);