Commit f6bfeef7 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter: fix handing of child context options

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c1907bd7
...@@ -656,11 +656,13 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options, ...@@ -656,11 +656,13 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value); av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value);
av_dict_set(options, key, value, 0); av_dict_set(options, key, value, 0);
if ((ret = av_opt_set(ctx->priv, key, value, 0)) < 0) { if ((ret = av_opt_set(ctx->priv, key, value, 0)) < 0) {
if (!av_opt_find(ctx->priv, key, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
if (ret == AVERROR_OPTION_NOT_FOUND) if (ret == AVERROR_OPTION_NOT_FOUND)
av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key); av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
av_free(value); av_free(value);
av_free(parsed_key); av_free(parsed_key);
return ret; return ret;
}
} }
av_free(value); av_free(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment