From a502939d64e807da6b3a9be84f4b21b35e5d251f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 6 Dec 2011 17:02:15 +0100 Subject: buffersink: Implement a poll function. With this the application can find out how many frames are available. Signed-off-by: Michael Niedermayer --- libavfilter/buffersink.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavfilter/buffersink.h') diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index c5ae7dc..73926a4 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -76,6 +76,12 @@ AVABufferSinkParams *av_abuffersink_params_alloc(void); int av_buffersink_get_buffer_ref(AVFilterContext *buffer_sink, AVFilterBufferRef **bufref, int flags); + +/** + * Get the number of immediately available frames. + */ +int av_buffersink_poll_frame(AVFilterContext *ctx); + #if FF_API_OLD_VSINK_API /** * @deprecated Use av_buffersink_get_buffer_ref() instead. -- cgit v1.1