[FFmpeg-cvslog] fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
Stefano Sabatini
git at videolan.org
Tue Aug 30 10:11:26 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat Aug 13 19:13:04 2011 +0200| [bf917e26e161b9f08bdc8749ae034c28adc45ba0] | committer: Stefano Sabatini
fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf917e26e161b9f08bdc8749ae034c28adc45ba0
---
libavutil/fifo.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index e1766ef..22a9aa5 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
More information about the ffmpeg-cvslog
mailing list