diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-19 18:43:34 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-19 18:43:34 +0000 |
commit | 8257b835cf4d422ca3f0426ac2e151f5dff69ecb (patch) | |
tree | 4e7f62292f381f3516b996757f233795a08de3c9 /libavutil/fifo.h | |
parent | e13894e80e25ecfda73fce3fbf1e206642c695a9 (diff) | |
download | ffmpeg-8257b835cf4d422ca3f0426ac2e151f5dff69ecb.tar.gz |
Implement av_fifo_realloc2().
Originally committed as revision 14846 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r-- | libavutil/fifo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 6533be921d..2384f7021f 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -97,10 +97,19 @@ int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void * 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 |