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-08 15:57:13 +0400
committerPaul B Mahol <onemda@gmail.com>2013-04-08 16:10:37 +0400
commit9fce2b8854c96eee131a0bf1a1b13b05146438a4 (patch)
tree5651021150d0fa4f580b5c280a718592c82f1bf8 /libavfilter/vf_il.c
parent8a97f6acc8893db7cc23c27e6917b61ea10d4e74 (diff)
lavfi/il: use standard option parsing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_il.c')
-rw-r--r--libavfilter/vf_il.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c
index 29c277c31d..7eee398ea0 100644
--- a/libavfilter/vf_il.c
+++ b/libavfilter/vf_il.c
@@ -81,20 +81,6 @@ static const AVOption il_options[] = {
AVFILTER_DEFINE_CLASS(il);
-static av_cold int init(AVFilterContext *ctx, const char *args)
-{
- IlContext *il = ctx->priv;
- int ret;
-
- il->class = &il_class;
- av_opt_set_defaults(il);
-
- if ((ret = av_set_options_string(il, args, "=", ":")) < 0)
- return ret;
-
- return 0;
-}
-
static int query_formats(AVFilterContext *ctx)
{
AVFilterFormats *formats = NULL;
@@ -218,13 +204,15 @@ static const AVFilterPad outputs[] = {
{ NULL }
};
+static const char *const shorthand[] = { NULL };
+
AVFilter avfilter_vf_il = {
.name = "il",
.description = NULL_IF_CONFIG_SMALL("Deinterleave or interleave fields."),
.priv_size = sizeof(IlContext),
- .init = init,
.query_formats = query_formats,
.inputs = inputs,
.outputs = outputs,
.priv_class = &il_class,
+ .shorthand = shorthand,
};