OSDN Git Service

fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 13 Aug 2011 17:13:04 +0000 (19:13 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 30 Aug 2011 08:03:13 +0000 (10:03 +0200)
libavutil/fifo.h

index e1766ef..22a9aa5 100644 (file)
@@ -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