diff options
author | James Almer <jamrial@gmail.com> | 2015-04-17 23:23:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-18 14:13:59 -0300 |
commit | 6863249b347c0e958f488593fbed5c96c0a5a71a (patch) | |
tree | bd83a720291fadf9457a13ccec5c201efbb0b8dd /libavcodec/aaccoder.c | |
parent | e623e8cbb033db4e30bb64668e8831f5d7a10f73 (diff) | |
download | ffmpeg-6863249b347c0e958f488593fbed5c96c0a5a71a.tar.gz |
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.c | 2 |
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); } } } |