aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/fifo.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-08 03:49:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-08 03:49:12 +0200
commitc71f8d40beb3badaebafa69458ce674cf46bb001 (patch)
tree3f5bd18737be39dbc722683867b66dc3c151cb47 /libavutil/fifo.h
parent9e5867743828c15773fedafe17a3126eb864a523 (diff)
parent9b60d907ae6d203e8e7877d7e8d357f7731eb4e9 (diff)
downloadffmpeg-c71f8d40beb3badaebafa69458ce674cf46bb001.tar.gz
Merge remote-tracking branch 'lukaszmluki/master'
* lukaszmluki/master: lavc: use av_fifo_freep lavf: use av_fifo_freep ffmpeg: use av_fifo_freep lavd/jack_audio: use av_fifo_freep lavfi: use av_fifo_freep lavu/fifo: add av_fifo_freep function Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r--libavutil/fifo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index fe7364f427..66fb48a2ed 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -48,6 +48,12 @@ AVFifoBuffer *av_fifo_alloc(unsigned int size);
void av_fifo_free(AVFifoBuffer *f);
/**
+ * Free an AVFifoBuffer and reset pointer to NULL.
+ * @param f AVFifoBuffer to free
+ */
+void av_fifo_freep(AVFifoBuffer **f);
+
+/**
* Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.
* @param f AVFifoBuffer to reset
*/