---
 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;
-- 
1.7.10.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to