diff fifo.h @ 679:58a5033060c3 libavutil

Allocate AVFifoBuffer through the fifo API to reduce future API/ABI issues. Yes this breaks ABI/API but ive already broken it and will bump avutil major soon.
author michael
date Sun, 08 Mar 2009 14:16:55 +0000
parents 5e391d180d81
children cb5d78a798ac
line wrap: on
line diff
--- a/fifo.h	Sun Mar 08 01:28:14 2009 +0000
+++ b/fifo.h	Sun Mar 08 14:16:55 2009 +0000
@@ -36,11 +36,10 @@
 
 /**
  * Initializes an AVFifoBuffer.
- * @param *f AVFifoBuffer to initialize
  * @param size of FIFO
- * @return <0 for failure >=0 otherwise
+ * @return AVFifoBuffer or NULL if mem allocation failure
  */
-int av_fifo_init(AVFifoBuffer *f, unsigned int size);
+AVFifoBuffer *av_fifo_alloc(unsigned int size);
 
 /**
  * Frees an AVFifoBuffer.