avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 25 May 2015 02:53:09 +0000 (04:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 1 Jun 2015 21:25:19 +0000 (23:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e4c2ec879b1121c02279cd60a54643da0d249e40)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/put_bits.h

index 8081fb9..fff08f6 100644 (file)
@@ -235,6 +235,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 */