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
ac6b7c47
Commit
ac6b7c47
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_astats: replace FFABS with fabs
parent
9ab98b58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_astats.c
libavfilter/af_astats.c
+3
-3
No files found.
libavfilter/af_astats.c
View file @
ac6b7c47
...
...
@@ -163,9 +163,9 @@ static inline void update_stat(AudioStatsContext *s, ChannelStats *p, double d)
p
->
sigma_x
+=
d
;
p
->
sigma_x2
+=
d
*
d
;
p
->
avg_sigma_x2
=
p
->
avg_sigma_x2
*
s
->
mult
+
(
1
.
0
-
s
->
mult
)
*
d
*
d
;
p
->
min_diff
=
FFMIN
(
p
->
min_diff
==
-
1
?
DBL_MAX
:
p
->
min_diff
,
FFABS
(
d
-
(
p
->
min_diff
==
-
1
?
DBL_MAX
:
p
->
last
)));
p
->
max_diff
=
FFMAX
(
p
->
max_diff
,
FFABS
(
d
-
(
p
->
max_diff
==
-
1
?
d
:
p
->
last
)));
p
->
diff1_sum
+=
FFABS
(
d
-
p
->
last
);
p
->
min_diff
=
FFMIN
(
p
->
min_diff
==
-
1
?
DBL_MAX
:
p
->
min_diff
,
fabs
(
d
-
(
p
->
min_diff
==
-
1
?
DBL_MAX
:
p
->
last
)));
p
->
max_diff
=
FFMAX
(
p
->
max_diff
,
fabs
(
d
-
(
p
->
max_diff
==
-
1
?
d
:
p
->
last
)));
p
->
diff1_sum
+=
fabs
(
d
-
p
->
last
);
p
->
last
=
d
;
p
->
mask
|=
llrint
(
d
*
(
UINT64_C
(
1
)
<<
63
));
...
...
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