diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-06 21:28:51 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-07 23:39:42 +0200 |
commit | 351f6118c7e3da6ea7a2ab0a8f7d25b2223f7c5a (patch) | |
tree | 24afeeeb5953cc0329e40f7ce9cc851da6933188 /libavutil/fifo.h | |
parent | 54ae58802e9829a8b62edcbea683fe89a8c6fcfa (diff) | |
download | ffmpeg-351f6118c7e3da6ea7a2ab0a8f7d25b2223f7c5a.tar.gz |
lavu/fifo: add av_fifo_freep function
Function allows to free fifo and reset freed pointer.
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r-- | libavutil/fifo.h | 6 |
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 */ |