[FFmpeg-cvslog] lavfi/il: use standard option parsing
Paul B Mahol
git at videolan.org
Mon Apr 8 14:11:03 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 8 11:57:13 2013 +0000| [9fce2b8854c96eee131a0bf1a1b13b05146438a4] | committer: Paul B Mahol
lavfi/il: use standard option parsing
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fce2b8854c96eee131a0bf1a1b13b05146438a4
---
libavfilter/vf_il.c | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c
index 29c277c..7eee398 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,
};
More information about the ffmpeg-cvslog
mailing list