Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@mail.de>2016-09-09 13:29:23 +0300
committerJames Almer <jamrial@gmail.com>2016-09-09 17:50:12 +0300
commit4d48add89b2c5124d660b5672f5d2c549cd65bc6 (patch)
tree6523d45d8787c347e28391c10088e41670e2cd7b /libavcodec/alsdec.c
parent6d6077024716eb6c6e04cae4ce1b40ec0614cbd1 (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.c2
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