You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi: do not segfault on NULL passed to avfilter_get_by_name()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user