diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-12 11:13:01 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-01-13 00:16:41 +0100 |
commit | dd195c2c587f44dbc4be7f059ed182f7d83e6cb4 (patch) | |
tree | 507b7a751e788b57f8d00b08876a7e6578b2ac6a /libavcodec | |
parent | 29e720da76ca353dbda9f881562902b41c355b77 (diff) | |
download | ffmpeg-dd195c2c587f44dbc4be7f059ed182f7d83e6cb4.tar.gz |
on2avc: Fix out of array access
CC: libav-stable@libav.org
Bug-Id: CID 1206648
(cherry picked from commit 2fa6d21124bd2fc0b186290f5313179263bfcfb7)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/on2avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index 1c4b3c9ea9..c00339f7b0 100644 --- a/libavcodec/on2avc.c +++ b/libavcodec/on2avc.c @@ -172,7 +172,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb) } else { scale += get_vlc2(gb, c->scale_diff.table, 9, 3) - 60; } - if (scale < 0 || scale > 128) { + if (scale < 0 || scale > 127) { av_log(c->avctx, AV_LOG_ERROR, "Invalid scale value %d\n", scale); return AVERROR_INVALIDDATA; |