mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
Merge commit '28eddef689f2b4843a84f7d05fd9614246f92cc4'
* commit '28eddef689f2b4843a84f7d05fd9614246f92cc4': hq_hqa: Validate get_vlc2 return value Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
400810abee
@ -75,7 +75,10 @@ static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64],
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (;;) {
|
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];
|
pos += ff_hq_ac_skips[val];
|
||||||
if (pos >= 64)
|
if (pos >= 64)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user