diff options
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 |