diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-08 11:57:13 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-08 12:10:37 +0000 |
commit | 9fce2b8854c96eee131a0bf1a1b13b05146438a4 (patch) | |
tree | 5651021150d0fa4f580b5c280a718592c82f1bf8 | |
parent | 8a97f6acc8893db7cc23c27e6917b61ea10d4e74 (diff) | |
download | ffmpeg-9fce2b8854c96eee131a0bf1a1b13b05146438a4.tar.gz |
lavfi/il: use standard option parsing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_il.c | 18 |
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, }; |