aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-30 12:34:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-30 12:40:16 +0200
commite27be795f019a8ba41c33b0cf0e3a060069252ea (patch)
treefe0e62c8e326f17ea72a4ea55a4da974bb6a6da2
parent32a39552597a2670577edb332028d9068c8f796a (diff)
downloadffmpeg-e27be795f019a8ba41c33b0cf0e3a060069252ea.tar.gz
avcodec/lpc: Use a function pointer from an initialized context
Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 4f1ccceb01..657a66d09b 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -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);