mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-29 20:56:12 +02:00
avcodec/on2avc: Fix out of array access
Fixes CID1206648 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
61815ef85b
commit
ce6a1ff2a1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user