diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 8081fb9ea5..fff08f675d 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -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 */