aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-08 10:48:39 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-10 11:52:02 +0100
commitb6ba764552c94bed7339ea34ef64bb1dc37c0956 (patch)
tree6487965e1d67bafab73bbb7bb13b135c1e948e55 /libavfilter
parentbd7c07c26a8196ef5c29bf50a2a6340e814162a1 (diff)
downloadffmpeg-b6ba764552c94bed7339ea34ef64bb1dc37c0956.tar.gz
lavfi/avfilter: export a multikey dict from process_options()
This way the function does not need to be able to match keys to AVOptions, which will be useful in future commits.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 689c91891e..278d5868de 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -850,17 +850,7 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
return ret;
}
} else {
- o = av_opt_find(ctx->priv, key, NULL, 0,
- AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);
- if (!o) {
- av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
- av_free(value);
- av_free(parsed_key);
- return AVERROR_OPTION_NOT_FOUND;
- }
- av_dict_set(options, key, value,
- (o->type == AV_OPT_TYPE_FLAGS &&
- (value[0] == '-' || value[0] == '+')) ? AV_DICT_APPEND : 0);
+ av_dict_set(options, key, value, AV_DICT_MULTIKEY);
}
av_free(value);