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
286127c5
Commit
286127c5
authored
Oct 01, 2007
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
div -> mul
Originally committed as revision 10630 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8eb1c1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
flacenc.c
libavcodec/flacenc.c
+6
-3
No files found.
libavcodec/flacenc.c
View file @
286127c5
...
...
@@ -770,7 +770,7 @@ static int lpc_calc_coefs(FlacEncodeContext *s,
compute_lpc_coefs
(
autoc
,
max_order
,
lpc
,
ref
);
}
else
{
LLSModel
m
[
2
];
double
var
[
MAX_LPC_ORDER
+
1
],
eval
,
weight
;
double
var
[
MAX_LPC_ORDER
+
1
],
weight
;
for
(
pass
=
0
;
pass
<
use_lpc
-
1
;
pass
++
){
av_init_lls
(
&
m
[
pass
&
1
],
max_order
);
...
...
@@ -781,11 +781,14 @@ static int lpc_calc_coefs(FlacEncodeContext *s,
var
[
j
]
=
samples
[
i
-
j
];
if
(
pass
){
double
eval
,
inv
,
rinv
;
eval
=
av_evaluate_lls
(
&
m
[(
pass
-
1
)
&
1
],
var
+
1
,
max_order
-
1
);
eval
=
(
512
>>
pass
)
+
fabs
(
eval
-
var
[
0
]);
inv
=
1
/
eval
;
rinv
=
sqrt
(
inv
);
for
(
j
=
0
;
j
<=
max_order
;
j
++
)
var
[
j
]
/=
sqrt
(
eval
)
;
weight
+=
1
/
eval
;
var
[
j
]
*=
rinv
;
weight
+=
inv
;
}
else
weight
++
;
...
...
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