Commit 927d866a authored by Michael Niedermayer's avatar Michael Niedermayer

tscc2: fix out of array access

Fixes CID732260
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5a75924d
......@@ -173,7 +173,7 @@ static int tscc2_decode_mb(TSCC2Context *c, int *q, int vlc_set,
if (ac == 0x1000)
ac = get_bits(gb, 12);
bpos += ac & 0xF;
if (bpos >= 64)
if (bpos >= 16)
return AVERROR_INVALIDDATA;
val = sign_extend(ac >> 4, 8);
c->block[tscc2_zigzag[bpos++]] = val;
......
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