diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-07 12:34:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-07 12:34:04 +0200 |
commit | d3f4fd76d521fb693537d0ecf8b2a6c1d93ac781 (patch) | |
tree | 963ac396d4e4bd0723e4dada65e4bfd47d194b91 /libavcodec | |
parent | dc7aecd8f77cc26f581c36a7adaac3a21e381c80 (diff) | |
download | ffmpeg-streaming-d3f4fd76d521fb693537d0ecf8b2a6c1d93ac781.zip ffmpeg-streaming-d3f4fd76d521fb693537d0ecf8b2a6c1d93ac781.tar.gz |
celp_math: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/celp_math.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/celp_math.c b/libavcodec/celp_math.c index 443bd7f..090b9d8 100644 --- a/libavcodec/celp_math.c +++ b/libavcodec/celp_math.c @@ -22,8 +22,8 @@ #include <inttypes.h> #include <limits.h> -#include <assert.h> +#include "libavutil/avassert.h" #include "avcodec.h" #include "mathops.h" #include "celp_math.h" @@ -80,7 +80,7 @@ int16_t ff_cos(uint16_t arg) uint8_t offset= arg; uint8_t ind = arg >> 8; - assert(arg < 0x4000); + av_assert2(arg < 0x4000); return FFMAX(base_cos[ind] + ((slope_cos[ind] * offset) >> 12), -0x8000); } @@ -91,7 +91,7 @@ int ff_exp2(uint16_t power) uint16_t frac_dx; int result; - assert(power <= 0x7fff); + av_assert2(power <= 0x7fff); frac_x0 = power >> 10; frac_dx = (power & 0x03ff) << 5; @@ -140,7 +140,7 @@ int16_t ff_cos(uint16_t arg) uint8_t offset= arg; uint8_t ind = arg >> 8; - assert(arg <= 0x3fff); + av_assert2(arg <= 0x3fff); return tab_cos[ind] + (offset * (tab_cos[ind+1] - tab_cos[ind]) >> 8); } @@ -149,7 +149,7 @@ int ff_exp2(uint16_t power) { unsigned int result= exp2a[power>>10] + 0x10000; - assert(power <= 0x7fff); + av_assert2(power <= 0x7fff); result= (result<<3) + ((result*exp2b[(power>>5)&31])>>17); return result + ((result*(power&31)*89)>>22); |