From 90efdf98b1ce75dcb45908455f5b194f87d78931 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 10 Apr 2013 15:47:18 +0200 Subject: [PATCH] avfilter: support alternative keys in the alternative shorthand system Signed-off-by: Michael Niedermayer --- libavfilter/avfilter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 2fb73c009f..2d50e819b4 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -623,6 +623,7 @@ static int process_unnamed_options(AVFilterContext *ctx, AVDictionary **options, const AVOption *o = NULL; const char *p = args; char *val; + int offset= -1; while (*p) { o = av_opt_next(ctx->priv, o); @@ -631,8 +632,9 @@ static int process_unnamed_options(AVFilterContext *ctx, AVDictionary **options, "this filter supports.\n"); return AVERROR(EINVAL); } - if (o->type == AV_OPT_TYPE_CONST) + if (o->type == AV_OPT_TYPE_CONST || o->offset == offset) continue; + offset = o->offset; val = av_get_token(&p, ":"); if (!val) -- GitLab