diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-05 18:25:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-05 18:25:01 +0000 |
commit | 71a48ff23c6b797a516337b768d98c6985f6158a (patch) | |
tree | 4373b750d7d8b387333e63b12729938024fa6457 /libavcodec/bitstream.h | |
parent | b516ecdd1267ce93ddf4c0b6c6436152d1c95a1e (diff) | |
download | ffmpeg-71a48ff23c6b797a516337b768d98c6985f6158a.tar.gz |
Add size_in_bits to PutBitContext
Originally committed as revision 17006 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r-- | libavcodec/bitstream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 62b8bc9f6c..e1ec934b28 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -85,6 +85,7 @@ typedef struct PutBitContext { 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 @@ static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_s buffer = NULL; } + s->size_in_bits= 8*buffer_size; s->buf = buffer; s->buf_end = s->buf + buffer_size; #ifdef ALT_BITSTREAM_WRITER |