on2avc: Fix out of array access
CC: libav-stable@libav.org
Bug-Id: CID 1206648
(cherry picked from commit 2fa6d21124)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
29e720da76
commit
dd195c2c58
@@ -172,7 +172,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb)
|
|||||||
} else {
|
} else {
|
||||||
scale += get_vlc2(gb, c->scale_diff.table, 9, 3) - 60;
|
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",
|
av_log(c->avctx, AV_LOG_ERROR, "Invalid scale value %d\n",
|
||||||
scale);
|
scale);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|||||||
Reference in New Issue
Block a user