summaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersink.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-25 00:30:15 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-30 14:03:54 +0200
commit1f5c1333a733a7cba1803c9f9eab86da5f010bd5 (patch)
tree878a452703b4b0e088266a13edd3cbbcecac2ca2 /libavfilter/buffersink.h
parent0689d5e17ac0a3269c604b4df2c01140be328647 (diff)
downloadffmpeg-streaming-1f5c1333a733a7cba1803c9f9eab86da5f010bd5.zip
ffmpeg-streaming-1f5c1333a733a7cba1803c9f9eab86da5f010bd5.tar.gz
sink_buffer: implement fixed frame size.
Diffstat (limited to 'libavfilter/buffersink.h')
-rw-r--r--libavfilter/buffersink.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h
index e9148f7..808c0c7 100644
--- a/libavfilter/buffersink.h
+++ b/libavfilter/buffersink.h
@@ -56,6 +56,15 @@ typedef struct {
AVABufferSinkParams *av_abuffersink_params_alloc(void);
/**
+ * Set the frame size for an audio buffer sink.
+ *
+ * All calls to av_buffersink_get_buffer_ref will return a buffer with
+ * exactly the specified number of samples, or AVERROR(EAGAIN) if there is
+ * not enough. The last buffer at EOF will be padded with 0.
+ */
+void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
+
+/**
* Tell av_buffersink_get_buffer_ref() to read video/samples buffer
* reference, but not remove it from the buffer. This is useful if you
* need only to read a video/samples buffer, without to fetch it.
OpenPOWER on IntegriCloud