aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/eamad.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-17 16:26:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-17 16:27:18 +0100
commit63ac64864c6e0e84355aa3caa5b92208997a9a8d (patch)
treed97b40c547b69f10f177be58452751a69e419495 /libavcodec/eamad.c
parent130dc9518779eb1b389d0cdf7348802e2b25f201 (diff)
downloadffmpeg-63ac64864c6e0e84355aa3caa5b92208997a9a8d.tar.gz
eamad: fix out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/eamad.c')
-rw-r--r--libavcodec/eamad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 280519518d..e38650ed6e 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -237,7 +237,7 @@ static int decode_frame(AVCodecContext *avctx,
int chunk_type;
int inter;
- if (buf_size < 17) {
+ if (buf_size < 26) {
av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n");
*data_size = 0;
return -1;