mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
hq_hqa: Validate get_vlc2 return value
The `hq_ac_vlc.table` is incomplete, so unaccounted symbol return -1 as value.
This commit is contained in:
parent
a78f5548d9
commit
28eddef689
@ -75,7 +75,10 @@ static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64],
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
val = get_vlc2(gb, c->hq_ac_vlc.table, 9, 2);
|
||||
val = get_vlc2(gb, c->hq_ac_vlc.table, 9, 2);
|
||||
if (val < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
pos += ff_hq_ac_skips[val];
|
||||
if (pos >= 64)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user