diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-28 00:07:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-28 00:07:10 +0200 |
commit | b1a17953ec5a9564a6a08bd1adbb713d80742a06 (patch) | |
tree | b72d2d16d98c98e9fb51eac974c3663262b98f48 /libavcodec | |
parent | f1136b2b10b3c4400944db5fa5ce56ab38a09bb4 (diff) | |
download | ffmpeg-b1a17953ec5a9564a6a08bd1adbb713d80742a06.tar.gz |
lpc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/lpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 5faddc24a6..a2a21dfc91 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -23,6 +23,7 @@ #define LPC_USE_DOUBLE #include "lpc.h" +#include "libavutil/avassert.h" /** @@ -37,7 +38,7 @@ static void lpc_apply_welch_window_c(const int32_t *data, int len, /* The optimization in commit fa4ed8c does not support odd len. * If someone wants odd len extend that change. */ - assert(!(len & 1)); + av_assert2(!(len & 1)); n2 = (len >> 1); c = 2.0 / (len - 1.0); @@ -166,7 +167,7 @@ int ff_lpc_calc_coefs(LPCContext *s, int i, j, pass; int opt_order; - assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER && + av_assert2(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER && lpc_type > FF_LPC_TYPE_FIXED); /* reinit LPC context if parameters have changed */ |