Commit d1c74ca2 authored by Michael Niedermayer's avatar Michael Niedermayer

lsp: use av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b1a17953
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment