summaryrefslogtreecommitdiff
path: root/libavfilter/buffersink.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-19 17:08:27 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-23 14:13:59 +0200
commite11110dee40837b766921855221968e1541230d3 (patch)
treeac9daecb31f4af601fa43fb489bf0634d017a5a3 /libavfilter/buffersink.h
parent2d6522bab0011a91a50aaad4b206d0a256b89621 (diff)
buffersink: add AV_BUFFERSINK_FLAG_NO_REQUEST.
Diffstat (limited to 'libavfilter/buffersink.h')
-rw-r--r--libavfilter/buffersink.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h
index 73926a4539..cf6bd69612 100644
--- a/libavfilter/buffersink.h
+++ b/libavfilter/buffersink.h
@@ -64,6 +64,13 @@ AVABufferSinkParams *av_abuffersink_params_alloc(void);
#define AV_BUFFERSINK_FLAG_PEEK 1
/**
+ * Tell av_buffersink_get_buffer_ref() not to request a frame fom its input.
+ * If a frame is already buffered, it is read (and removed from the buffer),
+ * but if no frame is present, return AVERROR(EAGAIN).
+ */
+#define AV_BUFFERSINK_FLAG_NO_REQUEST 2
+
+/**
* Get an audio/video buffer data from buffer_sink and put it in bufref.
*
* This function works with both audio and video buffer sinks.