Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
014c02d4
Commit
014c02d4
authored
Apr 22, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_anlms: simplify query formats
parent
41bbf2e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
af_anlms.c
libavfilter/af_anlms.c
+2
-19
No files found.
libavfilter/af_anlms.c
View file @
014c02d4
...
...
@@ -78,23 +78,6 @@ static const AVOption anlms_options[] = {
AVFILTER_DEFINE_CLASS_EXT
(
anlms
,
"anlm(f|s)"
,
anlms_options
);
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_FLTP
,
AV_SAMPLE_FMT_NONE
};
int
ret
=
ff_set_common_all_channel_counts
(
ctx
);
if
(
ret
<
0
)
return
ret
;
ret
=
ff_set_common_formats_from_list
(
ctx
,
sample_fmts
);
if
(
ret
<
0
)
return
ret
;
return
ff_set_common_all_samplerates
(
ctx
);
}
static
float
fir_sample
(
AudioNLMSContext
*
s
,
float
sample
,
float
*
delay
,
float
*
coeffs
,
float
*
tmp
,
int
*
offset
)
{
...
...
@@ -316,7 +299,7 @@ const AVFilter ff_af_anlms = {
.
activate
=
activate
,
FILTER_INPUTS
(
inputs
),
FILTER_OUTPUTS
(
outputs
),
FILTER_
QUERY_FUNC
(
query_formats
),
FILTER_
SINGLE_SAMPLEFMT
(
AV_SAMPLE_FMT_FLTP
),
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
|
AVFILTER_FLAG_SLICE_THREADS
,
.
process_command
=
ff_filter_process_command
,
...
...
@@ -332,7 +315,7 @@ const AVFilter ff_af_anlmf = {
.
activate
=
activate
,
FILTER_INPUTS
(
inputs
),
FILTER_OUTPUTS
(
outputs
),
FILTER_
QUERY_FUNC
(
query_formats
),
FILTER_
SINGLE_SAMPLEFMT
(
AV_SAMPLE_FMT_FLTP
),
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
|
AVFILTER_FLAG_SLICE_THREADS
,
.
process_command
=
ff_filter_process_command
,
...
...
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