aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-17 16:26:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-17 23:22:21 +0100
commitaf343f5cddc5b40cea53ea7c38e582dc9caae15b (patch)
treead210418a42180d998a6d1d284b0947a6a57301b /libavcodec
parent391e0fc6c90ced6656b74f50f3a487b6dc76ea63 (diff)
downloadffmpeg-af343f5cddc5b40cea53ea7c38e582dc9caae15b.tar.gz
eamad: fix out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 63ac64864c6e0e84355aa3caa5b92208997a9a8d) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/eamad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 602bbfcf93..a431bbcdd5 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -249,7 +249,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;