diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-02 20:22:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-02 20:22:12 +0200 |
commit | ce6a1ff2a124b3b0e8530bca1b6eed5a368feb5a (patch) | |
tree | a781d698dd345997ba1fa38c616a45f4225e4c74 | |
parent | 61815ef85b6eb8fe13486c7d3fd5a51dea7b8cca (diff) | |
download | ffmpeg-ce6a1ff2a124b3b0e8530bca1b6eed5a368feb5a.tar.gz |
avcodec/on2avc: Fix out of array access
Fixes CID1206648
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 4f30606a17..ab6048b63e 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; |