Mercurial > libavcodec.hg
diff mjpeg.c @ 1786:b7340afa261a libavcodec
get_bit_count -> put_bits_count
| author | alex |
|---|---|
| date | Fri, 06 Feb 2004 15:27:31 +0000 |
| parents | bdf3927bf8c5 |
| children | 920e6381e1fe |
line wrap: on
line diff
--- a/mjpeg.c Fri Feb 06 03:56:05 2004 +0000 +++ b/mjpeg.c Fri Feb 06 15:27:31 2004 +0000 @@ -477,7 +477,7 @@ 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 @@ 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 @@ 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 @@ 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
