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
9c694804
Commit
9c694804
authored
Aug 12, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_adeclick: stop returning EINVAL error
Instead clip relevant parameters.
parent
3e04f535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
af_adeclick.c
libavfilter/af_adeclick.c
+2
-6
No files found.
libavfilter/af_adeclick.c
View file @
9c694804
...
...
@@ -120,14 +120,10 @@ static int config_input(AVFilterLink *inlink)
int
i
;
s
->
pts
=
AV_NOPTS_VALUE
;
s
->
window_size
=
inlink
->
sample_rate
*
s
->
w
/
1000
.;
if
(
s
->
window_size
<
100
)
return
AVERROR
(
EINVAL
);
s
->
window_size
=
FFMAX
(
100
,
inlink
->
sample_rate
*
s
->
w
/
1000
.);
s
->
ar_order
=
FFMAX
(
s
->
window_size
*
s
->
ar
/
100
.,
1
);
s
->
nb_burst_samples
=
s
->
window_size
*
s
->
burst
/
1000
.;
s
->
hop_size
=
s
->
window_size
*
(
1
.
-
(
s
->
overlap
/
100
.));
if
(
s
->
hop_size
<
1
)
return
AVERROR
(
EINVAL
);
s
->
hop_size
=
FFMAX
(
1
,
s
->
window_size
*
(
1
.
-
(
s
->
overlap
/
100
.)));
s
->
window_func_lut
=
av_calloc
(
s
->
window_size
,
sizeof
(
*
s
->
window_func_lut
));
if
(
!
s
->
window_func_lut
)
...
...
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