diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2013-06-18 21:30:41 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-06-29 13:23:57 +0200 |
commit | 41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2 (patch) | |
tree | b492794cae47938289c3210e7b2a249c1843dcdf /libavcodec/lpc.c | |
parent | cc6714bb16b1f0716ba43701d47273dbe9657b8b (diff) | |
download | ffmpeg-41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2.tar.gz |
lpc: use function pointers, in preparation for asm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |