Commit e4c2ec87 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8ce564ea
...@@ -252,6 +252,7 @@ static inline void skip_put_bits(PutBitContext *s, int n) ...@@ -252,6 +252,7 @@ static inline void skip_put_bits(PutBitContext *s, int n)
static inline void set_put_bits_buffer_size(PutBitContext *s, int size) static inline void set_put_bits_buffer_size(PutBitContext *s, int size)
{ {
s->buf_end = s->buf + size; s->buf_end = s->buf + size;
s->size_in_bits = 8*size;
} }
#endif /* AVCODEC_PUT_BITS_H */ #endif /* AVCODEC_PUT_BITS_H */
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