Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment