diff options
author | Thilo Borgmann <thilo.borgmann@mail.de> | 2016-09-09 12:29:23 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-09-09 11:50:12 -0300 |
commit | 4d48add89b2c5124d660b5672f5d2c549cd65bc6 (patch) | |
tree | 6523d45d8787c347e28391c10088e41670e2cd7b /libavcodec/alsdec.c | |
parent | 6d6077024716eb6c6e04cae4ce1b40ec0614cbd1 (diff) |
lavc/alsdec: use get_bitsz() to simplify reading of the mantissa
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 8c4ff53617..3986347ee2 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -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 |