diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-07 07:58:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-07 07:58:16 +0200 |
commit | ab553612e7f8d23b9dd033f37d45e191b02a04d6 (patch) | |
tree | c8bf6878c82f6de8d35a7dc75ebd0172208a6345 /libavcodec/put_bits.h | |
parent | 3fb945a935ada1ea6564985d16e609f626a2794d (diff) | |
download | ffmpeg-ab553612e7f8d23b9dd033f37d45e191b02a04d6.tar.gz |
put_bits: switch assert to av_assert2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/put_bits.h')
-rw-r--r-- | libavcodec/put_bits.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 9256e7fa4d..132d1331e9 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -33,6 +33,7 @@ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/avassert.h" #include "mathops.h" #include "config.h" @@ -131,7 +132,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) int bit_left; // printf("put_bits=%d %x\n", n, value); - assert(n <= 31 && value < (1U << n)); + av_assert2(n <= 31 && value < (1U << n)); bit_buf = s->bit_buf; bit_left = s->bit_left; |