[FFmpeg-cvslog] put_bits: use av_assert
Michael Niedermayer
git at videolan.org
Wed Jun 6 21:27:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 6 21:18:14 2012 +0200| [62eace231c8d8bb4125523a8a29decd98a008040] | committer: Michael Niedermayer
put_bits: use av_assert
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62eace231c8d8bb4125523a8a29decd98a008040
---
libavcodec/put_bits.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index f8046b1..5ece495 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;
}
More information about the ffmpeg-cvslog
mailing list