summaryrefslogtreecommitdiff
path: root/libavcodec/on2avc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-12 11:13:01 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-15 12:50:05 +0100
commit2fa6d21124bd2fc0b186290f5313179263bfcfb7 (patch)
treea5e75c7f0c851d49f73e61ffcb0ecde270eb9c61 /libavcodec/on2avc.c
parent74d7db586a2e9aeb107e357739c7e4dde0b6991c (diff)
downloadffmpeg-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.c2
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;