Browse Source

on2avc: Fix out of array access

CC: libav-stable@libav.org
Bug-Id: CID 1206648
(cherry picked from commit 2fa6d21124bd2fc0b186290f5313179263bfcfb7)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.4.7
Michael Niedermayer Luca Barbato 11 years ago
parent
commit
dd195c2c58
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/on2avc.c

+ 1
- 1
libavcodec/on2avc.c View File

@@ -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…
Cancel
Save