aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/golomb.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-07-13 14:27:48 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-07-13 14:27:48 +0000
commit6647ab80e36aa2484a145029141984843958b246 (patch)
tree48875bae682ea15a8e2ef0163cef880fc63f49f2 /libavcodec/golomb.h
parentf9bd305694747b0bb51700c8fe1745beaaf886e3 (diff)
downloadffmpeg-6647ab80e36aa2484a145029141984843958b246.tar.gz
bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec. Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r--libavcodec/golomb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index f2bc7fda60..db4586521c 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -469,7 +469,7 @@ static inline void set_ur_golomb_jpegls(PutBitContext *pb, int i, int k, int lim
}
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);