summaryrefslogtreecommitdiffstats
path: root/libavcodec/lsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-28 00:07:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-28 00:07:22 +0200
commitd1c74ca2bee269ef5da4069d3d3617d8e503731e (patch)
tree3051fa150251cb725e82adfdd44bc09397c7919d /libavcodec/lsp.c
parentb1a17953ec5a9564a6a08bd1adbb713d80742a06 (diff)
downloadffmpeg-streaming-d1c74ca2bee269ef5da4069d3d3617d8e503731e.zip
ffmpeg-streaming-d1c74ca2bee269ef5da4069d3d3617d8e503731e.tar.gz
lsp: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lsp.c')
-rw-r--r--libavcodec/lsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c
index a5a86c8..c2d0c6d 100644
--- a/libavcodec/lsp.c
+++ b/libavcodec/lsp.c
@@ -29,6 +29,7 @@
#include "lsp.h"
#include "celp_math.h"
#include "libavcodec/mips/lsp_mips.h"
+#include "libavutil/avassert.h"
void ff_acelp_reorder_lsf(int16_t* lsfq, int lsfq_min_distance, int lsfq_min, int lsfq_max, int lp_order)
@@ -188,7 +189,7 @@ void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order)
double pa[MAX_LP_HALF_ORDER+1], qa[MAX_LP_HALF_ORDER+1];
float *lpc2 = lpc + (lp_half_order << 1) - 1;
- assert(lp_half_order <= MAX_LP_HALF_ORDER);
+ av_assert2(lp_half_order <= MAX_LP_HALF_ORDER);
ff_lsp2polyf(lsp, pa, lp_half_order);
ff_lsp2polyf(lsp + 1, qa, lp_half_order);
OpenPOWER on IntegriCloud