Merge commit '4e0be9c86f'
* commit '4e0be9c86f':
vf_frei0r: prevent a segfault when filter parameters are not set
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
bfe03205a8
1 changed files with 4 additions and 0 deletions
|
|
@ -479,6 +479,10 @@ static int source_config_props(AVFilterLink *outlink)
|
|||
av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance.\n");
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue