diff options
author | Olivier Guilyardi <list@samalyse.com> | 2009-04-02 23:22:19 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-02 23:22:19 +0000 |
commit | 7b09db35225e726949f28b59075bc6519f8fdac0 (patch) | |
tree | 4cd6cb49b5bf13593b5fbb96749adaf4d0d90d21 /libavutil/fifo.h | |
parent | a8f9e7f641f9d3a8aae99f23b571623a88283ae6 (diff) | |
download | ffmpeg-7b09db35225e726949f28b59075bc6519f8fdac0.tar.gz |
Implement av_fifo_space().
Patch by Olivier Guilyardi list et samalyse DOT c0m.
Originally committed as revision 18321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r-- | libavutil/fifo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/fifo.h b/libavutil/fifo.h index d353844715..a904dfd02e 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -62,6 +62,14 @@ void av_fifo_reset(AVFifoBuffer *f); 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 |