Commit e27be795 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/lpc: Use a function pointer from an initialized context

Fixes null pointer dereference
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 32a39552
......@@ -225,7 +225,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
if(pass){
double eval, inv, rinv;
eval= m[(pass-1)&1].evaluate_lls(&m[(pass-1)&1], var+1, max_order-1);
eval= m[pass&1].evaluate_lls(&m[(pass-1)&1], var+1, max_order-1);
eval= (512>>pass) + fabs(eval - var[0]);
inv = 1/eval;
rinv = sqrt(inv);
......
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