summaryrefslogtreecommitdiff
path: root/libavfilter/vf_delogo.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-03-16 21:14:57 +0100
committerNicolas George <nicolas.george@normalesup.org>2013-03-20 21:13:56 +0100
commit37438d0a7230ef6067833738f65dd70a70615346 (patch)
tree69f84ac4fa40c2240475bd895fec4f4cbb5e9abe /libavfilter/vf_delogo.c
parent40ecd44f00dc5e10db36b87cd7f728da13256ba2 (diff)
lavfi/vf_delogo: use standard options parsing.
Diffstat (limited to 'libavfilter/vf_delogo.c')
-rw-r--r--libavfilter/vf_delogo.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index 4c0670d136..159f69fc09 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -171,14 +171,6 @@ static int query_formats(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx, const char *args)
{
DelogoContext *delogo = ctx->priv;
- int ret = 0;
- static const char *shorthand[] = { "x", "y", "w", "h", "band", NULL };
-
- delogo->class = &delogo_class;
- av_opt_set_defaults(delogo);
-
- if ((ret = av_opt_set_from_string(delogo, args, shorthand, "=", ":")) < 0)
- return ret;
#define CHECK_UNSET_OPT(opt) \
if (delogo->opt == -1) { \
@@ -267,6 +259,8 @@ static const AVFilterPad avfilter_vf_delogo_outputs[] = {
{ NULL }
};
+static const char *const shorthand[] = { "x", "y", "w", "h", "band", NULL };
+
AVFilter avfilter_vf_delogo = {
.name = "delogo",
.description = NULL_IF_CONFIG_SMALL("Remove logo from input video."),
@@ -277,4 +271,5 @@ AVFilter avfilter_vf_delogo = {
.inputs = avfilter_vf_delogo_inputs,
.outputs = avfilter_vf_delogo_outputs,
.priv_class = &delogo_class,
+ .shorthand = shorthand,
};