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
f79750bc
Commit
f79750bc
authored
Nov 18, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_ladspa: use av_sscanf()
parent
2de165a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_ladspa.c
libavfilter/af_ladspa.c
+3
-3
No files found.
libavfilter/af_ladspa.c
View file @
f79750bc
...
...
@@ -548,8 +548,8 @@ static av_cold int init(AVFilterContext *ctx)
break
;
p
=
NULL
;
if
(
sscanf
(
arg
,
"c%d=%f"
,
&
i
,
&
val
)
!=
2
)
{
if
(
sscanf
(
arg
,
"%f"
,
&
val
)
!=
1
)
{
if
(
av_
sscanf
(
arg
,
"c%d=%f"
,
&
i
,
&
val
)
!=
2
)
{
if
(
av_
sscanf
(
arg
,
"%f"
,
&
val
)
!=
1
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid syntax.
\n
"
);
return
AVERROR
(
EINVAL
);
}
...
...
@@ -715,7 +715,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
LADSPA_Data
value
;
unsigned
long
port
;
if
(
sscanf
(
cmd
,
"c%ld"
,
&
port
)
+
sscanf
(
args
,
"%f"
,
&
value
)
!=
2
)
if
(
av_sscanf
(
cmd
,
"c%ld"
,
&
port
)
+
av_
sscanf
(
args
,
"%f"
,
&
value
)
!=
2
)
return
AVERROR
(
EINVAL
);
return
set_control
(
ctx
,
port
,
value
);
...
...
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