[FFmpeg-devel] [PATCH 1/3] aaccoder: use put_sbits()

James Almer jamrial at gmail.com
Sat Apr 18 04:29:42 CEST 2015


Signed-off-by: James Almer <jamrial at gmail.com>
---
 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);
                     }
                 }
             }
-- 
2.3.5



More information about the ffmpeg-devel mailing list