diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-02-27 12:06:15 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-04 11:19:03 +0100 |
commit | 4e0be9c86f2003dd3ba2eb8fad01e8d0e538075e (patch) | |
tree | 47973641a8f7c73f46988430da8e0de903900d32 | |
parent | 8accddeb5806cd98e3803b4ddf2a2ef576d0e4d9 (diff) | |
download | ffmpeg-4e0be9c86f2003dd3ba2eb8fad01e8d0e538075e.tar.gz |
vf_frei0r: prevent a segfault when filter parameters are not set
-rw-r--r-- | libavfilter/vf_frei0r.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index b3ac61e806..fde6e1a96c 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -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); } |