mirror of https://git.ffmpeg.org/ffmpeg.git
tta: check remaining bitstream size while reading unary value
This commit is contained in:
parent
3d813e4c54
commit
35f9d8c20a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue