comparison 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
comparison
equal deleted inserted replaced
678:bcd0e6fe83d8 679:58a5033060c3
34 uint32_t rndx, wndx; 34 uint32_t rndx, wndx;
35 } AVFifoBuffer; 35 } AVFifoBuffer;
36 36
37 /** 37 /**
38 * Initializes an AVFifoBuffer. 38 * Initializes an AVFifoBuffer.
39 * @param *f AVFifoBuffer to initialize
40 * @param size of FIFO 39 * @param size of FIFO
41 * @return <0 for failure >=0 otherwise 40 * @return AVFifoBuffer or NULL if mem allocation failure
42 */ 41 */
43 int av_fifo_init(AVFifoBuffer *f, unsigned int size); 42 AVFifoBuffer *av_fifo_alloc(unsigned int size);
44 43
45 /** 44 /**
46 * Frees an AVFifoBuffer. 45 * Frees an AVFifoBuffer.
47 * @param *f AVFifoBuffer to free 46 * @param *f AVFifoBuffer to free
48 */ 47 */