Commit 35f9d8c2 authored by Justin Ruggles's avatar Justin Ruggles

tta: check remaining bitstream size while reading unary value

parent 3d813e4c
......@@ -182,7 +182,7 @@ static int tta_get_unary(GetBitContext *gb)
int ret = 0;
// count ones
while(get_bits1(gb))
while (get_bits_left(gb) > 0 && get_bits1(gb))
ret++;
return ret;
}
......
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