History

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.

Anton Khirnov committed 3 years ago

Commit b6ba7641 parent bd7c07c1 file · +1 −11Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+1−11
@@ -850,17 +850,7 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options, · 849 unmodified lines
850850 return ret;
851851 }
852852 } else {
853− o = av_opt_find(ctx->priv, key, NULL, 0,
854− AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);
855− if (!o) {
856− av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
857− av_free(value);
858− av_free(parsed_key);
859− return AVERROR_OPTION_NOT_FOUND;
860− }
861− av_dict_set(options, key, value,
862− (o->type == AV_OPT_TYPE_FLAGS &&
863− (value[0] == '-' || value[0] == '+')) ? AV_DICT_APPEND : 0);
853+ av_dict_set(options, key, value, AV_DICT_MULTIKEY);
864854 }
865855
866856 av_free(value);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t