Commit 62eace23 authored by Michael Niedermayer's avatar Michael Niedermayer

put_bits: use av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 28e4f906
......@@ -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<<n)-1));
}
......@@ -207,8 +207,8 @@ static inline uint8_t* put_bits_ptr(PutBitContext *s)
*/
static inline void skip_put_bytes(PutBitContext *s, int n)
{
assert((put_bits_count(s)&7)==0);
assert(s->bit_left==32);
av_assert2((put_bits_count(s)&7)==0);
av_assert2(s->bit_left==32);
s->buf_ptr += n;
}
......
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