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
f266d2ac
Commit
f266d2ac
authored
Dec 27, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afir: remove not needed nb_samples from filter context
parent
ff0b4d5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
af_afir.c
libavfilter/af_afir.c
+2
-4
af_afir.h
libavfilter/af_afir.h
+0
-1
No files found.
libavfilter/af_afir.c
View file @
f266d2ac
...
...
@@ -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
,
src
,
s
->
dry_gain
,
FFALIGN
(
s
->
nb_samples
,
4
));
s
->
fdsp
->
vector_fmul_scalar
(
block
,
src
,
s
->
dry_gain
,
FFALIGN
(
out
->
nb_samples
,
4
));
emms_c
();
av_rdft_calc
(
s
->
rdft
[
ch
],
block
);
...
...
@@ -121,9 +121,7 @@ static int fir_frame(AudioFIRContext *s, AVFrame *in, AVFilterLink *outlink)
AVFilterContext
*
ctx
=
outlink
->
src
;
AVFrame
*
out
=
NULL
;
s
->
nb_samples
=
in
->
nb_samples
;
out
=
ff_get_audio_buffer
(
outlink
,
s
->
nb_samples
);
out
=
ff_get_audio_buffer
(
outlink
,
in
->
nb_samples
);
if
(
!
out
)
{
av_frame_free
(
&
in
);
return
AVERROR
(
ENOMEM
);
...
...
libavfilter/af_afir.h
View file @
f266d2ac
...
...
@@ -62,7 +62,6 @@ typedef struct AudioFIRContext {
int
fft_length
;
int
nb_coef_channels
;
int
one2many
;
int
nb_samples
;
RDFTContext
**
rdft
,
**
irdft
;
float
**
sum
;
...
...
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