Commit 4d48add8 authored by Thilo Borgmann's avatar Thilo Borgmann Committed by James Almer

lavc/alsdec: use get_bitsz() to simplify reading of the mantissa

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 6d607702
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment