diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-07-13 14:27:48 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-07-13 14:27:48 +0000 |
commit | 6647ab80e36aa2484a145029141984843958b246 (patch) | |
tree | 48875bae682ea15a8e2ef0163cef880fc63f49f2 /libavcodec/mjpegenc.c | |
parent | f9bd305694747b0bb51700c8fe1745beaaf886e3 (diff) | |
download | ffmpeg-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/mjpegenc.c')
-rw-r--r-- | libavcodec/mjpegenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 5ef6db5ac3..9268af0e1f 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -369,7 +369,7 @@ void ff_mjpeg_encode_dc(MpegEncContext *s, int val, put_bits(&s->pb, huff_size[nbits], huff_code[nbits]); - put_bits(&s->pb, nbits, mant & ((1 << nbits) - 1)); + put_sbits(&s->pb, nbits, mant); } } @@ -421,7 +421,7 @@ static void encode_block(MpegEncContext *s, DCTELEM *block, int n) put_bits(&s->pb, huff_size_ac[code], huff_code_ac[code]); - put_bits(&s->pb, nbits, mant & ((1 << nbits) - 1)); + put_sbits(&s->pb, nbits, mant); run = 0; } } |