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
a0a2ca02
Commit
a0a2ca02
authored
Sep 12, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_ladspa: support simpler syntax for controls
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
56291434
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
filters.texi
doc/filters.texi
+3
-0
af_ladspa.c
libavfilter/af_ladspa.c
+6
-3
No files found.
doc/filters.texi
View file @
a0a2ca02
...
...
@@ -1970,6 +1970,9 @@ threshold or gain).
Controls need to be defined using the following syntax:
c0=@var{value0}|c1=@var{value1}|c2=@var{value2}|..., where
@var{valuei} is the value set on the @var{i}-th control.
Alternatively they can be also defined using the following syntax:
@var{value0}|@var{value1}|@var{value2}|..., where
@var{valuei} is the value set on the @var{i}-th control.
If @option{controls} is set to @code{help}, all available controls and
their valid ranges are printed.
...
...
libavfilter/af_ladspa.c
View file @
a0a2ca02
...
...
@@ -396,7 +396,7 @@ static av_cold int init(AVFilterContext *ctx)
AVFilterPad
pad
=
{
NULL
};
char
*
p
,
*
arg
,
*
saveptr
=
NULL
;
unsigned
long
nb_ports
;
int
i
;
int
i
,
j
=
0
;
if
(
!
s
->
dl_name
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"No plugin name provided
\n
"
);
...
...
@@ -543,8 +543,11 @@ static av_cold int init(AVFilterContext *ctx)
p
=
NULL
;
if
(
sscanf
(
arg
,
"c%d=%f"
,
&
i
,
&
val
)
!=
2
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid syntax.
\n
"
);
return
AVERROR
(
EINVAL
);
if
(
sscanf
(
arg
,
"%f"
,
&
val
)
!=
1
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid syntax.
\n
"
);
return
AVERROR
(
EINVAL
);
}
i
=
j
++
;
}
if
((
ret
=
set_control
(
ctx
,
i
,
val
))
<
0
)
...
...
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