Browse Source

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

Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
e27be795f0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lpc.c

+ 1
- 1
libavcodec/lpc.c View File

@@ -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);


Loading…
Cancel
Save