You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avcodec/lpc: Use a function pointer from an initialized context
Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -225,7 +225,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
|
|||||||
|
|
||||||
if(pass){
|
if(pass){
|
||||||
double eval, inv, rinv;
|
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]);
|
eval= (512>>pass) + fabs(eval - var[0]);
|
||||||
inv = 1/eval;
|
inv = 1/eval;
|
||||||
rinv = sqrt(inv);
|
rinv = sqrt(inv);
|
||||||
|
Reference in New Issue
Block a user