From e4c2ec879b1121c02279cd60a54643da0d249e40 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 25 May 2015 04:53:09 +0200 Subject: avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size() Signed-off-by: Michael Niedermayer --- libavcodec/put_bits.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec') diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 52eb7fbcf8..031db334d1 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -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) { s->buf_end = s->buf + size; + s->size_in_bits = 8*size; } #endif /* AVCODEC_PUT_BITS_H */ -- cgit v1.2.3