# HG changeset patch # User michael # Date 1233858301 0 # Node ID 2c296d925b704b3c03625c2e81aa97ac52bd47b5 # Parent 9833a42260fc61d0dfdf1302bc1884d6e813a060 Add size_in_bits to PutBitContext diff -r 9833a42260fc -r 2c296d925b70 bitstream.h --- 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