summaryrefslogtreecommitdiff
path: root/libavfilter/buffersrc.h
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2017-04-03 15:01:45 +0200
committerNicolas George <george@nsup.org>2017-09-08 10:31:01 +0200
commit5ba2aef6ec47689300debd3ddd1f39cad010a971 (patch)
treebc5a3961a346ea4cde75cf7806f18ce3fb79832c /libavfilter/buffersrc.h
parent36c111c40f4bd7da114df0e9c484833aa2cdf2dc (diff)
downloadffmpeg-5ba2aef6ec47689300debd3ddd1f39cad010a971.tar.gz
lavfi/buffersrc: add av_buffersrc_close().
Diffstat (limited to 'libavfilter/buffersrc.h')
-rw-r--r--libavfilter/buffersrc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index e42c78196b..0652113f2b 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -193,6 +193,14 @@ av_warn_unused_result
int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src,
AVFrame *frame, int flags);
+/**
+ * Close the buffer source after EOF.
+ *
+ * This is similar to passing NULL to av_buffersrc_add_frame_flags()
+ * except it takes the timestamp of the EOF, i.e. the timestamp of the end
+ * of the last frame.
+ */
+int av_buffersrc_close(AVFilterContext *ctx, int64_t pts, unsigned flags);
/**
* @}