Commit 400810ab authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '28eddef6'

* commit '28eddef6':
  hq_hqa: Validate get_vlc2 return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b112e25d 28eddef6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment