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
659672f3
Commit
659672f3
authored
Apr 05, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/afade: use standard options parsing
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
8df46c65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
af_afade.c
libavfilter/af_afade.c
+3
-7
No files found.
libavfilter/af_afade.c
View file @
659672f3
...
...
@@ -80,13 +80,6 @@ AVFILTER_DEFINE_CLASS(afade);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
AudioFadeContext
*
afade
=
ctx
->
priv
;
int
ret
;
afade
->
class
=
&
afade_class
;
av_opt_set_defaults
(
afade
);
if
((
ret
=
av_set_options_string
(
afade
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
INT64_MAX
-
afade
->
nb_samples
<
afade
->
start_sample
)
return
AVERROR
(
EINVAL
);
...
...
@@ -295,6 +288,8 @@ static const AVFilterPad avfilter_af_afade_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
NULL
};
AVFilter
avfilter_af_afade
=
{
.
name
=
"afade"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Fade in/out input audio."
),
...
...
@@ -304,4 +299,5 @@ AVFilter avfilter_af_afade = {
.
inputs
=
avfilter_af_afade_inputs
,
.
outputs
=
avfilter_af_afade_outputs
,
.
priv_class
=
&
afade_class
,
.
shorthand
=
shorthand
,
};
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