Mercurial > libavcodec.hg
changeset 8746:2c296d925b70 libavcodec
Add size_in_bits to PutBitContext
author | michael |
---|---|
date | Thu, 05 Feb 2009 18:25:01 +0000 |
parents | 9833a42260fc |
children | a261e3271d1f |
files | bitstream.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bitstream.h Thu Feb 05 08:58:35 2009 +0000 +++ b/bitstream.h Thu Feb 05 18:25:01 2009 +0000 @@ -85,6 +85,7 @@ int bit_left; uint8_t *buf, *buf_ptr, *buf_end; #endif + int size_in_bits; } PutBitContext; static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size) @@ -94,6 +95,7 @@ buffer = NULL; } + s->size_in_bits= 8*buffer_size; s->buf = buffer; s->buf_end = s->buf + buffer_size; #ifdef ALT_BITSTREAM_WRITER