diff options
-rw-r--r-- | libavfilter/formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 2b13cbf3db..95a6b1188d 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -445,7 +445,7 @@ do { \ do { \ int idx = -1; \ \ - if (!*ref) \ + if (!*ref || !(*ref)->refs) \ return; \ \ FIND_REF_INDEX(ref, idx); \ |