Commit c7b0a84e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '62549f96'

* commit '62549f96':
  lavfi: error out when options are provided to a filter that does not take any

Conflicts:
	libavfilter/avfilter.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 31428240 62549f96
......@@ -758,7 +758,13 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
args = NULL;
}
if (anton_options && args && *args && filter->filter->priv_class) {
if (anton_options && args && *args) {
if (!filter->filter->priv_class) {
av_log(filter, AV_LOG_ERROR, "This filter does not take any "
"options, but options were provided: %s.\n", args);
return AVERROR(EINVAL);
}
#if FF_API_OLD_FILTER_OPTS
if (!strcmp(filter->filter->name, "scale") &&
strchr(args, ':') < strchr(args, '=')) {
......
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