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
80265dba
Commit
80265dba
authored
Nov 18, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afftdn: use av_sscanf()
parent
0c7fb6e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_afftdn.c
libavfilter/af_afftdn.c
+3
-3
No files found.
libavfilter/af_afftdn.c
View file @
80265dba
...
...
@@ -564,7 +564,7 @@ static void read_custom_noise(AudioFFTDeNoiseContext *s, int ch)
p
=
NULL
;
ret
=
sscanf
(
arg
,
"%d"
,
&
band_noise
[
i
]);
ret
=
av_
sscanf
(
arg
,
"%d"
,
&
band_noise
[
i
]);
if
(
ret
!=
1
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Custom band noise must be integer.
\n
"
);
break
;
...
...
@@ -1390,7 +1390,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
!
strcmp
(
cmd
,
"noise_reduction"
))
{
float
nr
;
if
(
sscanf
(
args
,
"%f"
,
&
nr
)
==
1
)
{
if
(
av_
sscanf
(
args
,
"%f"
,
&
nr
)
==
1
)
{
s
->
noise_reduction
=
av_clipf
(
nr
,
0
.
01
,
97
);
need_reset
=
1
;
}
...
...
@@ -1398,7 +1398,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
!
strcmp
(
cmd
,
"noise_floor"
))
{
float
nf
;
if
(
sscanf
(
args
,
"%f"
,
&
nf
)
==
1
)
{
if
(
av_
sscanf
(
args
,
"%f"
,
&
nf
)
==
1
)
{
s
->
noise_floor
=
av_clipf
(
nf
,
-
80
,
-
20
);
need_reset
=
1
;
}
...
...
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