mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 17:53:13 +00:00
avcodec/siren: Improve the bits left threshold in decode_envelope()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
109113b54f
commit
1ad4782d2a
@ -447,7 +447,7 @@ static int decode_envelope(SirenContext *s, GetBitContext *gb,
|
||||
int index = 0;
|
||||
|
||||
do {
|
||||
if (get_bits_left(gb) < 4)
|
||||
if (get_bits_left(gb) < 4 + number_of_regions - i + s->checksum_bits)
|
||||
return AVERROR_INVALIDDATA;
|
||||
index = differential_decoder_tree[i - 1][index][get_bits1(gb)];
|
||||
} while (index > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user