mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter: support alternative keys in the alternative shorthand system
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
43bac121d3
commit
90efdf98b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user