diff fifo.h @ 688:91216685a7ae libavutil

Add av_fifo_reset function to completely reset fifo state, which makes it easier to reuse the fifo.
author reimar
date Mon, 09 Mar 2009 09:26:32 +0000
parents b084f8cd043f
children 4e9e0c52ed08
line wrap: on
line diff
--- a/fifo.h	Mon Mar 09 03:39:58 2009 +0000
+++ b/fifo.h	Mon Mar 09 09:26:32 2009 +0000
@@ -48,6 +48,12 @@
 void av_fifo_free(AVFifoBuffer *f);
 
 /**
+ * Resets the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.
+ * @param *f AVFifoBuffer to reset
+ */
+void av_fifo_reset(AVFifoBuffer *f);
+
+/**
  * Returns the amount of data in bytes in the AVFifoBuffer, that is the
  * amount of data you can read from it.
  * @param *f AVFifoBuffer to read from