Browse code

fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior

Stefano Sabatini authored on 2011/08/14 02:13:04
Showing 1 changed files
... ...
@@ -94,6 +94,8 @@ int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void
94 94
 
95 95
 /**
96 96
  * Resize an AVFifoBuffer.
97
+ * In case of reallocation failure, the old FIFO is kept unchanged.
98
+ *
97 99
  * @param f AVFifoBuffer to resize
98 100
  * @param size new AVFifoBuffer size in bytes
99 101
  * @return <0 for failure, >=0 otherwise