diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 20:01:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 20:01:08 +0200 |
commit | 58e4adb6f7f71294a09422eef1717f70d36c146c (patch) | |
tree | b718b7480563548dd3666aa9287b7f3dd3fbcd33 /libavutil/integer.c | |
parent | 2f23a8ab17a55e52da502132ad109b6d8a719bf5 (diff) | |
download | ffmpeg-58e4adb6f7f71294a09422eef1717f70d36c146c.tar.gz |
libavutil/integer: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/integer.c')
-rw-r--r-- | libavutil/integer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/integer.c b/libavutil/integer.c index 4f9b66cbc8..7e394b342e 100644 --- a/libavutil/integer.c +++ b/libavutil/integer.c @@ -27,6 +27,7 @@ #include "common.h" #include "integer.h" +#include "avassert.h" AVInteger av_add_i(AVInteger a, AVInteger b){ int i, carry=0; @@ -110,8 +111,8 @@ AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){ AVInteger quot_temp; if(!quot) quot = "_temp; - assert((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0); - assert(av_log2(b)>=0); + av_assert2((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0); + av_assert2(av_log2(b)>=0); if(i > 0) b= av_shr_i(b, -i); |