diff options
author | Nicolas George <george@nsup.org> | 2017-04-03 15:01:45 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2017-09-08 10:31:01 +0200 |
commit | 5ba2aef6ec47689300debd3ddd1f39cad010a971 (patch) | |
tree | bc5a3961a346ea4cde75cf7806f18ce3fb79832c /libavfilter/buffersrc.h | |
parent | 36c111c40f4bd7da114df0e9c484833aa2cdf2dc (diff) |
lavfi/buffersrc: add av_buffersrc_close().
Diffstat (limited to 'libavfilter/buffersrc.h')
-rw-r--r-- | libavfilter/buffersrc.h | 8 |
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); /** * @} |