diff fifo.h @ 722:2f890bb12bbc libavutil

Implement av_fifo_space(). Patch by Olivier Guilyardi list et samalyse DOT c0m.
author stefano
date Thu, 02 Apr 2009 23:22:19 +0000
parents 4e9e0c52ed08
children 3d6e83a917d2
line wrap: on
line diff
--- a/fifo.h	Thu Apr 02 22:41:58 2009 +0000
+++ b/fifo.h	Thu Apr 02 23:22:19 2009 +0000
@@ -62,6 +62,14 @@
 int av_fifo_size(AVFifoBuffer *f);
 
 /**
+ * Returns the amount of space in bytes in the AVFifoBuffer, that is the
+ * amount of data you can write into it.
+ * @param *f AVFifoBuffer to write into
+ * @return size
+ */
+int av_fifo_space(AVFifoBuffer *f);
+
+/**
  * Feeds data from an AVFifoBuffer to a user-supplied callback.
  * @param *f AVFifoBuffer to read from
  * @param buf_size number of bytes to read