diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2004-02-06 15:27:31 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2004-02-06 15:27:31 +0000 |
commit | fe455f3328ca1ae4b71a345f50936d19f30e5c5f (patch) | |
tree | 82a5a6b41535a9a8b2d6efa20d5418931480e2b7 /libavcodec/mjpeg.c | |
parent | de7ff1f774e2610d9ac23d2613a9f7e19e8c0f9d (diff) | |
download | ffmpeg-fe455f3328ca1ae4b71a345f50936d19f30e5c5f.tar.gz |
get_bit_count -> put_bits_count
Originally committed as revision 2752 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r-- | libavcodec/mjpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 1a948aa56f..ca64fb2b13 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -477,7 +477,7 @@ void mjpeg_picture_header(MpegEncContext *s) static void escape_FF(MpegEncContext *s, int start) { - int size= get_bit_count(&s->pb) - start*8; + int size= put_bits_count(&s->pb) - start*8; int i, ff_count; uint8_t *buf= s->pb.buf + start; int align= (-(size_t)(buf))&3; @@ -533,7 +533,7 @@ static void escape_FF(MpegEncContext *s, int start) void mjpeg_picture_trailer(MpegEncContext *s) { - int pad= (-get_bit_count(&s->pb))&7; + int pad= (-put_bits_count(&s->pb))&7; put_bits(&s->pb, pad,0xFF>>(8-pad)); flush_put_bits(&s->pb); @@ -651,7 +651,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, in mjpeg_picture_header(s); - s->header_bits= get_bit_count(&s->pb); + s->header_bits= put_bits_count(&s->pb); if(avctx->pix_fmt == PIX_FMT_RGBA32){ int x, y, i; @@ -770,7 +770,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, in flush_put_bits(&s->pb); return pbBufPtr(&s->pb) - s->pb.buf; -// return (get_bit_count(&f->pb)+7)/8; +// return (put_bits_count(&f->pb)+7)/8; } #endif //CONFIG_ENCODERS |