跳到主要内容

av_fifo_grow2

搜索

函数 av_fifo_grow2 

源代码
pub unsafe extern "C" fn av_fifo_grow2(
    f: *mut AVFifo,
    inc: usize,
) -> c_int
展开描述

Enlarge an AVFifo.

On success, the FIFO will be large enough to hold exactly inc + av_fifo_can_read() + av_fifo_can_write() elements. In case of failure, the old FIFO is kept unchanged.

@param f AVFifo to resize @param inc number of elements to allocate for, in addition to the current allocated size @return a non-negative number on success, a negative error code on failure