mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
x86: lpc: fix a segfault in av_evaluate_lls_sse2()
This commit is contained in:
parent
6765ee7b9c
commit
1221bb6239
@ -221,7 +221,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);
|
||||||
|
@ -197,7 +197,7 @@ cglobal update_lls, 3,6,8, ctx, var, count, i, j, count2
|
|||||||
|
|
||||||
|
|
||||||
INIT_XMM sse2
|
INIT_XMM sse2
|
||||||
cglobal evaluate_lls, 2,4,2, ctx, var, order, i
|
cglobal evaluate_lls, 3,4,2, ctx, var, order, i
|
||||||
; This function is often called on the same buffer as update_lls, but with
|
; This function is often called on the same buffer as update_lls, but with
|
||||||
; an offset. They can't both be aligned.
|
; an offset. They can't both be aligned.
|
||||||
; Load halves rather than movu to avoid store-forwarding stalls, since the
|
; Load halves rather than movu to avoid store-forwarding stalls, since the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user