[FFmpeg-devel] [PATCH] fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sun Aug 28 01:52:04 CEST 2011
---
libavutil/fifo.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index b84eaea..ff2ed85 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
--
1.7.2.5
More information about the ffmpeg-devel
mailing list