This way the function does not need to be able to match keys to AVOptions, which will be useful in future commits.
Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all
Unified · Split
| @@ -850,17 +850,7 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options, · 849 unmodified lines | ||
| 850 | 850 | return ret; |
| 851 | 851 | } |
| 852 | 852 | } 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); | |
| 864 | 854 | } |
| 865 | 855 | |
| 866 | 856 | av_free(value); |