aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/filters.h
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2022-02-19 16:13:39 +0100
committerNicolas George <george@nsup.org>2022-02-20 12:38:52 +0100
commit531d09fb2d6bddb968dbef1fbb8b351aed85cbfa (patch)
tree97c39854f9436c81ea773b151c457fa0a5ab332a /libavfilter/filters.h
parent12139d11036e3e5db87c4ab5a2b064fed7394bbb (diff)
downloadffmpeg-531d09fb2d6bddb968dbef1fbb8b351aed85cbfa.tar.gz
lavfi: add ff_inoutlink_check_flow()
Diffstat (limited to 'libavfilter/filters.h')
-rw-r--r--libavfilter/filters.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 1157755403..86bc49d459 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -258,4 +258,12 @@ static inline void ff_outlink_set_status(AVFilterLink *link, int status, int64_t
} \
} while (0)
+/**
+ * Check for flow control between input and output.
+ * This is necessary for filters that may produce several output frames for
+ * a single input event, otherwise they may produce them all at once,
+ * causing excessive memory consumption.
+ */
+int ff_inoutlink_check_flow(AVFilterLink *inlink, AVFilterLink *outlink);
+
#endif /* AVFILTER_FILTERS_H */