Commit 59a69a43 authored by michael's avatar michael

Add size_in_bits to PutBitContext


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17006 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0d83c39c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment