diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 21:18:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 21:18:14 +0200 |
commit | 62eace231c8d8bb4125523a8a29decd98a008040 (patch) | |
tree | 6277b7b7a57510a30dceb5534a202335d9fb14b7 /libavcodec/put_bits.h | |
parent | 28e4f906fa1fa6a9a357f6e8ebaf5a1377b10f1c (diff) | |
download | ffmpeg-62eace231c8d8bb4125523a8a29decd98a008040.tar.gz |
put_bits: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/put_bits.h')
-rw-r--r-- | libavcodec/put_bits.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<<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; } |