Merge commit '416847d19593e87ee1704c26a9a638fd6b0d977c' into release/2.2
* commit '416847d19593e87ee1704c26a9a638fd6b0d977c': vf_frei0r: prevent a segfault when filter parameters are not set Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -479,6 +479,10 @@ static int source_config_props(AVFilterLink *outlink)
|
|||||||
av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance\n");
|
av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
if (!s->params) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "frei0r filter parameters not set.\n");
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
}
|
||||||
|
|
||||||
return set_params(ctx, s->params);
|
return set_params(ctx, s->params);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user