From bf917e26e161b9f08bdc8749ae034c28adc45ba0 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 13 Aug 2011 19:13:04 +0200 Subject: fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior --- libavutil/fifo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/fifo.h b/libavutil/fifo.h index e1766ef322..22a9aa5d18 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -94,6 +94,8 @@ int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void /** * Resize an AVFifoBuffer. + * In case of reallocation failure, the old FIFO is kept unchanged. + * * @param f AVFifoBuffer to resize * @param size new AVFifoBuffer size in bytes * @return <0 for failure, >=0 otherwise -- cgit v1.2.3