[FFmpeg-cvslog] aaccoder: use put_sbits()
James Almer
git at videolan.org
Sat Apr 18 19:20:11 CEST 2015
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Apr 17 23:23:44 2015 -0300| [6863249b347c0e958f488593fbed5c96c0a5a71a] | committer: James Almer
aaccoder: use put_sbits()
Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6863249b347c0e958f488593fbed5c96c0a5a71a
---
libavcodec/aaccoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index f07e523..2929f3a 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);
}
}
}
More information about the ffmpeg-cvslog
mailing list