Mercurial > libavutil.hg
diff fifo.h @ 564:a1ac1cb9a91b libavutil
Implement av_fifo_realloc2().
author | stefano |
---|---|
date | Tue, 19 Aug 2008 18:43:34 +0000 |
parents | 5accd0bccc76 |
children | a0dab9157d6a |
line wrap: on
line diff
--- a/fifo.h Sun Aug 17 19:32:51 2008 +0000 +++ b/fifo.h Tue Aug 19 18:43:34 2008 +0000 @@ -97,10 +97,19 @@ * Resizes an AVFifoBuffer. * @param *f AVFifoBuffer to resize * @param size new AVFifoBuffer size in bytes + * @see av_fifo_realloc2() */ void av_fifo_realloc(AVFifoBuffer *f, unsigned int size); /** + * Resizes an AVFifoBuffer. + * @param *f AVFifoBuffer to resize + * @param size new AVFifoBuffer size in bytes + * @return <0 for failure >=0 otherwise + */ +int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); + +/** * Reads and discards the specified amount of data from an AVFifoBuffer. * @param *f AVFifoBuffer to read from * @param size amount of data to read in bytes