From 41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 18 Jun 2013 21:30:41 +0000 Subject: lpc: use function pointers, in preparation for asm Signed-off-by: Luca Barbato --- libavcodec/lpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/lpc.c') diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index c098b0f0f6..f60976be94 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -212,7 +212,7 @@ int ff_lpc_calc_coefs(LPCContext *s, if(pass){ double eval, inv, rinv; - eval= avpriv_evaluate_lls(&m[(pass-1)&1], var+1, max_order-1); + eval= m[(pass-1)&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); @@ -222,7 +222,7 @@ int ff_lpc_calc_coefs(LPCContext *s, }else weight++; - avpriv_update_lls(&m[pass&1], var); + m[pass&1].update_lls(&m[pass&1], var); } avpriv_solve_lls(&m[pass&1], 0.001, 0); } -- cgit v1.2.3