av_fifo_realloc2

Function av_fifo_realloc2 

Source
pub unsafe extern "C" fn av_fifo_realloc2(
    f: *mut AVFifoBuffer,
    size: c_uint,
) -> c_int
Expand description

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

@deprecated use the new AVFifo-API with av_fifo_grow2() to increase FIFO size, decreasing FIFO size is not supported