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
7e7d0909
Commit
7e7d0909
authored
Jun 03, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_astats: rename stat()
See CID1026741 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bbae6521
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 @
7e7d0909
...
@@ -105,7 +105,7 @@ static int config_output(AVFilterLink *outlink)
...
@@ -105,7 +105,7 @@ static int config_output(AVFilterLink *outlink)
return
0
;
return
0
;
}
}
static
inline
void
stat
(
AudioStatsContext
*
s
,
ChannelStats
*
p
,
double
d
)
static
inline
void
update_
stat
(
AudioStatsContext
*
s
,
ChannelStats
*
p
,
double
d
)
{
{
if
(
d
<
p
->
min
)
{
if
(
d
<
p
->
min
)
{
p
->
min
=
d
;
p
->
min
=
d
;
...
@@ -157,7 +157,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
...
@@ -157,7 +157,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
src
=
(
const
double
*
)
buf
->
extended_data
[
c
];
src
=
(
const
double
*
)
buf
->
extended_data
[
c
];
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
,
src
++
)
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
,
src
++
)
stat
(
s
,
p
,
*
src
);
update_
stat
(
s
,
p
,
*
src
);
}
}
break
;
break
;
case
AV_SAMPLE_FMT_DBL
:
case
AV_SAMPLE_FMT_DBL
:
...
@@ -165,7 +165,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
...
@@ -165,7 +165,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
)
{
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
)
{
for
(
c
=
0
;
c
<
channels
;
c
++
,
src
++
)
for
(
c
=
0
;
c
<
channels
;
c
++
,
src
++
)
stat
(
s
,
&
s
->
chstats
[
c
],
*
src
);
update_
stat
(
s
,
&
s
->
chstats
[
c
],
*
src
);
}
}
break
;
break
;
}
}
...
...
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