[FFmpeg-cvslog] lavfi: do not segfault on NULL passed to avfilter_get_by_name()
Anton Khirnov
git at videolan.org
Fri Apr 12 15:18:43 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Apr 7 07:33:24 2013 +0200| [f160c6a18a574b4c7d063e0a748037cbbd9912ee] | committer: Anton Khirnov
lavfi: do not segfault on NULL passed to avfilter_get_by_name()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f160c6a18a574b4c7d063e0a748037cbbd9912ee
---
libavfilter/avfilter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 199d8f9..8f028e1 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -273,6 +273,9 @@ AVFilter *avfilter_get_by_name(const char *name)
{
AVFilter *f = NULL;
+ if (!name)
+ return NULL;
+
while ((f = avfilter_next(f)))
if (!strcmp(f->name, name))
return f;
More information about the ffmpeg-cvslog
mailing list