1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

put_bits: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-06-06 21:18:14 +02:00
parent 28e4f906fa
commit 62eace231c

View File

@ -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;
}