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
3b336ec2
Commit
3b336ec2
authored
Oct 13, 2015
by
Ganesh Ajjanagadde
Committed by
Paul B Mahol
Oct 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_sidechaincompress: replace FFABS with fabs
parent
ac6b7c47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_sidechaincompress.c
libavfilter/af_sidechaincompress.c
+3
-3
No files found.
libavfilter/af_sidechaincompress.c
View file @
3b336ec2
...
@@ -154,14 +154,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
...
@@ -154,14 +154,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
for
(
i
=
0
;
i
<
nb_samples
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_samples
;
i
++
)
{
double
abs_sample
,
gain
=
1
.
0
;
double
abs_sample
,
gain
=
1
.
0
;
abs_sample
=
FFABS
(
scsrc
[
0
]);
abs_sample
=
fabs
(
scsrc
[
0
]);
if
(
s
->
link
==
1
)
{
if
(
s
->
link
==
1
)
{
for
(
c
=
1
;
c
<
sclink
->
channels
;
c
++
)
for
(
c
=
1
;
c
<
sclink
->
channels
;
c
++
)
abs_sample
=
FFMAX
(
FFABS
(
scsrc
[
c
]),
abs_sample
);
abs_sample
=
FFMAX
(
fabs
(
scsrc
[
c
]),
abs_sample
);
}
else
{
}
else
{
for
(
c
=
1
;
c
<
sclink
->
channels
;
c
++
)
for
(
c
=
1
;
c
<
sclink
->
channels
;
c
++
)
abs_sample
+=
FFABS
(
scsrc
[
c
]);
abs_sample
+=
fabs
(
scsrc
[
c
]);
abs_sample
/=
sclink
->
channels
;
abs_sample
/=
sclink
->
channels
;
}
}
...
...
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