mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 10:14:33 +00:00
filters/f_lavfi: fix null dereference on empty graph
This commit is contained in:
parent
2b1e9a6537
commit
995283bd7a
@ -904,6 +904,9 @@ struct mp_lavfi *mp_lavfi_create_graph(struct mp_filter *parent,
|
|||||||
char *hwdec_interop,
|
char *hwdec_interop,
|
||||||
char **graph_opts, const char *graph)
|
char **graph_opts, const char *graph)
|
||||||
{
|
{
|
||||||
|
if (!graph)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
struct lavfi *c = lavfi_alloc(parent);
|
struct lavfi *c = lavfi_alloc(parent);
|
||||||
if (!c)
|
if (!c)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user