diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index f8046b1d09..5ece495075 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -171,7 +171,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) static inline void put_sbits(PutBitContext *pb, int n, int32_t value) { - assert(n >= 0 && n <= 31); + av_assert2(n >= 0 && n <= 31); put_bits(pb, n, value & ((1<bit_left==32); + av_assert2((put_bits_count(s)&7)==0); + av_assert2(s->bit_left==32); s->buf_ptr += n; }