diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-12 11:13:01 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-15 12:50:05 +0100 |
commit | 2fa6d21124bd2fc0b186290f5313179263bfcfb7 (patch) | |
tree | a5e75c7f0c851d49f73e61ffcb0ecde270eb9c61 /libavcodec/on2avc.c | |
parent | 74d7db586a2e9aeb107e357739c7e4dde0b6991c (diff) | |
download | ffmpeg-2fa6d21124bd2fc0b186290f5313179263bfcfb7.tar.gz |
on2avc: Fix out of array access
CC: libav-stable@libav.org
Bug-Id: CID 1206648
Diffstat (limited to 'libavcodec/on2avc.c')
-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 60f451c68f..deaa2b4c04 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; |