You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_frei0r: prevent a segfault when filter parameters are not set
This commit is contained in:
@@ -459,6 +459,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user