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
72270d5b
Commit
72270d5b
authored
Dec 30, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afir: optimize code a little more
Avoid memset.
parent
e4788ae3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
af_afir.c
libavfilter/af_afir.c
+1
-4
No files found.
libavfilter/af_afir.c
View file @
72270d5b
...
...
@@ -76,7 +76,6 @@ static int fir_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
seg
->
output_offset
[
ch
]
+=
s
->
min_part_size
;
if
(
seg
->
output_offset
[
ch
]
==
seg
->
part_size
)
{
seg
->
output_offset
[
ch
]
=
0
;
memset
(
dst
,
0
,
sizeof
(
*
dst
)
*
seg
->
part_size
);
}
else
{
memmove
(
src
,
src
+
s
->
min_part_size
,
(
seg
->
input_size
-
s
->
min_part_size
)
*
sizeof
(
*
src
));
...
...
@@ -119,9 +118,7 @@ static int fir_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
buf
[
n
]
+=
sum
[
n
];
}
for
(
n
=
0
;
n
<
seg
->
part_size
;
n
++
)
{
dst
[
n
]
+=
buf
[
n
];
}
memcpy
(
dst
,
buf
,
seg
->
part_size
*
sizeof
(
*
dst
));
buf
=
(
float
*
)
seg
->
buffer
->
extended_data
[
ch
];
memcpy
(
buf
,
sum
+
seg
->
part_size
,
seg
->
part_size
*
sizeof
(
*
buf
));
...
...
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