OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d7db5
)
on2avc: Fix out of array access
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 12 Nov 2014 10:13:01 +0000
(11:13 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sat, 15 Nov 2014 11:50:05 +0000
(12:50 +0100)
CC: libav-stable@libav.org
Bug-Id: CID
1206648
libavcodec/on2avc.c
patch
|
blob
|
history
diff --git
a/libavcodec/on2avc.c
b/libavcodec/on2avc.c
index
60f451c
..
deaa2b4
100644
(file)
--- 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 > 12
8
) {
+ if (scale < 0 || scale > 12
7
) {
av_log(c->avctx, AV_LOG_ERROR, "Invalid scale value %d\n",
scale);
return AVERROR_INVALIDDATA;