mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
avcodec/alsdec: Fix reading 0 mantisse bits
Fixes assertion failure Fixes: 848c24abc1721c9e3d1ba7bfee8d9fcc/asan_heap-oob_1d99eca_3709_567bba70d67e7d62714dcf56f26fb1da.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2d3099ad8e
commit
037422178d
@ -1527,7 +1527,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) {
|
||||
if (!get_bits1(gb)) { //uncompressed
|
||||
for (i = 0; i < frame_length; ++i) {
|
||||
if (ctx->raw_samples[c][i] != 0) {
|
||||
raw_mantissa[c][i] = get_bits(gb, nbits[i]);
|
||||
raw_mantissa[c][i] = nbits[i] ? get_bits(gb, nbits[i]) : 0;
|
||||
}
|
||||
}
|
||||
} else { //compressed
|
||||
|
Loading…
Reference in New Issue
Block a user