mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-15 02:19:25 +00:00
wmalosslessdec: Fix reading too many bits in decode_channel_residues()
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2a7063de54
commit
b3a4351582
@ -520,7 +520,7 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
|
||||
residue = quo;
|
||||
else {
|
||||
rem_bits = av_ceil_log2(ave_mean);
|
||||
rem = rem_bits ? get_bits(&s->gb, rem_bits) : 0;
|
||||
rem = get_bits_long(&s->gb, rem_bits);
|
||||
residue = (quo << rem_bits) + rem;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user