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
b841fe00
Commit
b841fe00
authored
Dec 28, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_silenceremove: lower number of operations in for loop
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
50401f5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
af_silenceremove.c
libavfilter/af_silenceremove.c
+4
-4
No files found.
libavfilter/af_silenceremove.c
View file @
b841fe00
...
@@ -256,8 +256,8 @@ silence_trim:
...
@@ -256,8 +256,8 @@ silence_trim:
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
s
->
update
(
s
,
*
ibuf
);
s
->
update
(
s
,
*
ibuf
);
s
->
start_holdoff
[
s
->
start_holdoff_end
++
]
=
*
ibuf
++
;
s
->
start_holdoff
[
s
->
start_holdoff_end
++
]
=
*
ibuf
++
;
nb_samples_read
++
;
}
}
nb_samples_read
+=
inlink
->
channels
;
if
(
s
->
start_holdoff_end
>=
s
->
start_duration
*
inlink
->
channels
)
{
if
(
s
->
start_holdoff_end
>=
s
->
start_duration
*
inlink
->
channels
)
{
if
(
++
s
->
start_found_periods
>=
s
->
start_periods
)
{
if
(
++
s
->
start_found_periods
>=
s
->
start_periods
)
{
...
@@ -334,9 +334,9 @@ silence_copy:
...
@@ -334,9 +334,9 @@ silence_copy:
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
s
->
update
(
s
,
*
ibuf
);
s
->
update
(
s
,
*
ibuf
);
*
obuf
++
=
*
ibuf
++
;
*
obuf
++
=
*
ibuf
++
;
nb_samples_read
++
;
nb_samples_written
++
;
}
}
nb_samples_read
+=
inlink
->
channels
;
nb_samples_written
+=
inlink
->
channels
;
}
else
if
(
!
threshold
)
{
}
else
if
(
!
threshold
)
{
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
for
(
j
=
0
;
j
<
inlink
->
channels
;
j
++
)
{
s
->
update
(
s
,
*
ibuf
);
s
->
update
(
s
,
*
ibuf
);
...
@@ -346,8 +346,8 @@ silence_copy:
...
@@ -346,8 +346,8 @@ silence_copy:
}
}
s
->
stop_holdoff
[
s
->
stop_holdoff_end
++
]
=
*
ibuf
++
;
s
->
stop_holdoff
[
s
->
stop_holdoff_end
++
]
=
*
ibuf
++
;
nb_samples_read
++
;
}
}
nb_samples_read
+=
inlink
->
channels
;
if
(
s
->
stop_holdoff_end
>=
s
->
stop_duration
*
inlink
->
channels
)
{
if
(
s
->
stop_holdoff_end
>=
s
->
stop_duration
*
inlink
->
channels
)
{
if
(
++
s
->
stop_found_periods
>=
s
->
stop_periods
)
{
if
(
++
s
->
stop_found_periods
>=
s
->
stop_periods
)
{
...
...
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