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:
authorJames Almer <jamrial@gmail.com>2015-04-18 05:23:44 +0300
committerJames Almer <jamrial@gmail.com>2015-04-18 20:13:59 +0300
commit6863249b347c0e958f488593fbed5c96c0a5a71a (patch)
treebd83a720291fadf9457a13ccec5c201efbb0b8dd /libavcodec/aaccoder.c
parente623e8cbb033db4e30bb64668e8831f5d7a10f73 (diff)
aaccoder: use put_sbits()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aaccoder.c')
-rw-r--r--libavcodec/aaccoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index f07e52352b..2929f3ac44 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -210,7 +210,7 @@ static av_always_inline float quantize_and_encode_band_cost_template(
int len = av_log2(coef);
put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2);
- put_bits(pb, len, coef & ((1 << len) - 1));
+ put_sbits(pb, len, coef);
}
}
}