diff golomb.h @ 7260:3ec34b551aae libavcodec

bitstream: move put_sbits() from flacenc.c to bitstream.h and use it throughout libavcodec.
author ramiro
date Sun, 13 Jul 2008 14:27:48 +0000
parents 1d83e9c34641
children c4a4495715dd
line wrap: on
line diff
--- a/golomb.h	Sun Jul 13 14:25:31 2008 +0000
+++ b/golomb.h	Sun Jul 13 14:27:48 2008 +0000
@@ -469,7 +469,7 @@
         }
         put_bits(pb, e, 1);
         if(k)
-            put_bits(pb, k, i&((1<<k)-1));
+            put_sbits(pb, k, i);
     }else{
         while(limit > 31) {
             put_bits(pb, 31, 0);