mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/alsdec: use get_bitsz() to simplify reading of the mantissa
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
6d60770247
commit
4d48add89b
@ -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] = nbits[i] ? get_bits(gb, nbits[i]) : 0;
|
||||
raw_mantissa[c][i] = get_bitsz(gb, nbits[i]);
|
||||
}
|
||||
}
|
||||
} else { //compressed
|
||||
|
Loading…
Reference in New Issue
Block a user