mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi: do not segfault on NULL passed to avfilter_get_by_name()
This commit is contained in:
parent
fa2a34cd40
commit
f160c6a18a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue