[FFmpeg-cvslog] on2avc: Fix out of array access
Michael Niedermayer
git at videolan.org
Sat Nov 15 19:32:17 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 12 11:13:01 2014 +0100| [2fa6d21124bd2fc0b186290f5313179263bfcfb7] | committer: Vittorio Giovara
on2avc: Fix out of array access
CC: libav-stable at libav.org
Bug-Id: CID 1206648
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2fa6d21124bd2fc0b186290f5313179263bfcfb7
---
libavcodec/on2avc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c
index 60f451c..deaa2b4 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;
More information about the ffmpeg-cvslog
mailing list