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
ff0b4d5a
Commit
ff0b4d5a
authored
Dec 27, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afir: remove not needed operations
parent
b5e0a0fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
af_afir.c
libavfilter/af_afir.c
+2
-3
No files found.
libavfilter/af_afir.c
View file @
ff0b4d5a
...
...
@@ -72,7 +72,7 @@ static int fir_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
block
=
s
->
block
[
ch
]
+
s
->
part_index
*
s
->
block_size
;
memset
(
block
,
0
,
sizeof
(
*
block
)
*
s
->
fft_length
);
s
->
fdsp
->
vector_fmul_scalar
(
block
+
s
->
part_size
,
src
,
s
->
dry_gain
,
FFALIGN
(
s
->
nb_samples
,
4
));
s
->
fdsp
->
vector_fmul_scalar
(
block
,
src
,
s
->
dry_gain
,
FFALIGN
(
s
->
nb_samples
,
4
));
emms_c
();
av_rdft_calc
(
s
->
rdft
[
ch
],
block
);
...
...
@@ -401,12 +401,11 @@ static int convert_coeffs(AVFilterContext *ctx)
const
float
scale
=
1
.
f
/
s
->
part_size
;
const
int
toffset
=
i
*
s
->
part_size
;
const
int
coffset
=
i
*
s
->
coeff_size
;
const
int
boffset
=
s
->
part_size
;
const
int
remaining
=
s
->
nb_taps
-
(
i
*
s
->
part_size
);
const
int
size
=
remaining
>=
s
->
part_size
?
s
->
part_size
:
remaining
;
memset
(
block
,
0
,
sizeof
(
*
block
)
*
s
->
fft_length
);
memcpy
(
block
+
boffset
,
time
+
toffset
,
size
*
sizeof
(
*
block
));
memcpy
(
block
,
time
+
toffset
,
size
*
sizeof
(
*
block
));
av_rdft_calc
(
s
->
rdft
[
0
],
block
);
...
...
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