Commit f160c6a1 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

lavfi: do not segfault on NULL passed to avfilter_get_by_name()

parent fa2a34cd
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment