Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1221bb62
Commit
1221bb62
authored
Jun 30, 2013
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: lpc: fix a segfault in av_evaluate_lls_sse2()
parent
6765ee7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lpc.c
libavcodec/lpc.c
+1
-1
lls.asm
libavutil/x86/lls.asm
+1
-1
No files found.
libavcodec/lpc.c
View file @
1221bb62
...
...
@@ -221,7 +221,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
);
...
...
libavutil/x86/lls.asm
View file @
1221bb62
...
...
@@ -197,7 +197,7 @@ cglobal update_lls, 3,6,8, ctx, var, count, i, j, count2
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
; an offset. They can't both be aligned.
; Load halves rather than movu to avoid store-forwarding stalls, since the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment