diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-05 00:12:22 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-05 00:14:55 +0000 |
commit | 2b26077c95537c1334735400489aa2bcef074cc8 (patch) | |
tree | 5d5693743701d4c2c6f7f87e7b0d0f819d67a75c | |
parent | a95e6838679269c7804379ab03b88ec48e8fcccd (diff) | |
download | ffmpeg-2b26077c95537c1334735400489aa2bcef074cc8.tar.gz |
lavfi/blend: use standard options parsing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_blend.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index 1a88db1ce7..782bf4bf8f 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -225,12 +225,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) BlendContext *b = ctx->priv; int ret, plane; - b->class = &blend_class; - av_opt_set_defaults(b); - - if ((ret = av_set_options_string(b, args, "=", ":")) < 0) - return ret; - for (plane = 0; plane < FF_ARRAY_ELEMS(b->params); plane++) { FilterParams *param = &b->params[plane]; @@ -460,6 +454,8 @@ static const AVFilterPad blend_outputs[] = { { NULL } }; +static const char *const shorthand[] = { NULL }; + AVFilter avfilter_vf_blend = { .name = "blend", .description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."), @@ -470,4 +466,5 @@ AVFilter avfilter_vf_blend = { .inputs = blend_inputs, .outputs = blend_outputs, .priv_class = &blend_class, + .shorthand = shorthand, }; |