Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-05 04:01:28 +0400
committerPaul B Mahol <onemda@gmail.com>2013-04-05 04:14:55 +0400
commit659672f3eeae92dca6407e8aafd5f3eaa59035a2 (patch)
treeb4519669083db2240e063e7e9e16cf38a12b1875 /libavfilter/af_afade.c
parent8df46c65cf999e087bf16394e475fedfb2b24aab (diff)
lavfi/afade: use standard options parsing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_afade.c')
-rw-r--r--libavfilter/af_afade.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c
index 7f68327576..2ab467489e 100644
--- a/libavfilter/af_afade.c
+++ b/libavfilter/af_afade.c
@@ -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,
};