1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

vf_frei0r: prevent a segfault when filter parameters are not set

This commit is contained in:
Vittorio Giovara 2014-02-27 12:06:15 +01:00
parent 8accddeb58
commit 4e0be9c86f

View File

@ -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);
}