mirror of https://git.ffmpeg.org/ffmpeg.git
qdm2: Check vlc_stage3_values index.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cb8f5194b3
commit
1a974679d0
|
@ -343,7 +343,14 @@ static int qdm2_get_vlc (GetBitContext *gb, VLC *vlc, int flag, int depth)
|
||||||
|
|
||||||
/* stage-3, optional */
|
/* stage-3, optional */
|
||||||
if (flag) {
|
if (flag) {
|
||||||
int tmp = vlc_stage3_values[value];
|
int tmp;
|
||||||
|
|
||||||
|
if (value >= 60) {
|
||||||
|
av_log(0, AV_LOG_ERROR, "value %d in qdm2_get_vlc too large\n", value);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tmp= vlc_stage3_values[value];
|
||||||
|
|
||||||
if ((value & ~3) > 0)
|
if ((value & ~3) > 0)
|
||||||
tmp += get_bits (gb, (value >> 2));
|
tmp += get_bits (gb, (value >> 2));
|
||||||
|
|
Loading…
Reference in New Issue