This way the function does not need to be able to match keys to AVOptions, which will be useful in future commits.
Unified · Split
| @@ -850,17 +850,7 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options, · 849 unmodified lines | |||
| 850 | return ret; | 850 | return ret; |
| 851 | } | 851 | } |
| 852 | } else { | 852 | } else { |
| 853 | o = av_opt_find(ctx->priv, key, NULL, 0, | 853 | av_dict_set(options, key, value, AV_DICT_MULTIKEY); |
| 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); | ||
| 864 | } | 854 | } |
| 865 | 855 | ||
| 866 | av_free(value); | 856 | av_free(value); |