Mercurial > libavcodec.hg
diff common.c @ 1660:806afb8e9085 libavcodec
removing unused var & converting 64->32bit
author | michael |
---|---|
date | Fri, 05 Dec 2003 23:12:03 +0000 |
parents | fdb8244da1e5 |
children | 07a484280a82 |
line wrap: on
line diff
--- a/common.c Fri Dec 05 01:03:12 2003 +0000 +++ b/common.c Fri Dec 05 23:12:03 2003 +0000 @@ -48,7 +48,6 @@ { s->buf = buffer; s->buf_end = s->buf + buffer_size; - s->data_out_size = 0; #ifdef ALT_BITSTREAM_WRITER s->index=0; ((uint32_t*)(s->buf))[0]=0; @@ -63,12 +62,12 @@ #ifdef CONFIG_ENCODERS /* return the number of bits output */ -int64_t get_bit_count(PutBitContext *s) +int get_bit_count(PutBitContext *s) { #ifdef ALT_BITSTREAM_WRITER - return s->data_out_size * 8 + s->index; + return s->index; #else - return (s->buf_ptr - s->buf + s->data_out_size) * 8 + 32 - (int64_t)s->bit_left; + return (s->buf_ptr - s->buf) * 8 + 32 - s->bit_left; #endif }