lavfi/formats: fix segfault when allocation fails
This is a somewhat subtle failure that can occur when the realloc_array fails in FORMATS_REF. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
46cbb4c231
commit
93afb338a4
@ -445,7 +445,7 @@ do { \
|
||||
do { \
|
||||
int idx = -1; \
|
||||
\
|
||||
if (!*ref) \
|
||||
if (!*ref || !(*ref)->refs) \
|
||||
return; \
|
||||
\
|
||||
FIND_REF_INDEX(ref, idx); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user