[FFmpeg-cvslog] vf_frei0r: prevent a segfault when filter parameters are not set
Vittorio Giovara
git at videolan.org
Tue Mar 4 13:18:06 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Feb 27 12:06:15 2014 +0100| [4e0be9c86f2003dd3ba2eb8fad01e8d0e538075e] | committer: Vittorio Giovara
vf_frei0r: prevent a segfault when filter parameters are not set
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e0be9c86f2003dd3ba2eb8fad01e8d0e538075e
---
libavfilter/vf_frei0r.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index b3ac61e..fde6e1a 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);
}
More information about the ffmpeg-cvslog
mailing list