mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Add size_in_bits to PutBitContext
Originally committed as revision 17006 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b516ecdd12
commit
71a48ff23c
@ -85,6 +85,7 @@ typedef struct PutBitContext {
|
|||||||
int bit_left;
|
int bit_left;
|
||||||
uint8_t *buf, *buf_ptr, *buf_end;
|
uint8_t *buf, *buf_ptr, *buf_end;
|
||||||
#endif
|
#endif
|
||||||
|
int size_in_bits;
|
||||||
} PutBitContext;
|
} PutBitContext;
|
||||||
|
|
||||||
static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
|
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;
|
buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s->size_in_bits= 8*buffer_size;
|
||||||
s->buf = buffer;
|
s->buf = buffer;
|
||||||
s->buf_end = s->buf + buffer_size;
|
s->buf_end = s->buf + buffer_size;
|
||||||
#ifdef ALT_BITSTREAM_WRITER
|
#ifdef ALT_BITSTREAM_WRITER
|
||||||
|
Loading…
Reference in New Issue
Block a user