Function av_fifo_generic_peek

pub unsafe extern "C" fn av_fifo_generic_peek(
    f: *mut AVFifoBuffer,
    dest: *mut c_void,
    buf_size: i32,
    func: Option<unsafe extern "C" fn(*mut c_void, *mut c_void, i32)>,
) -> i32
Available on crate feature dep_ffmpeg only.
Expand description

Feed data from an AVFifoBuffer to a user-supplied callback. Similar as av_fifo_gereric_read but without discarding data. @param f AVFifoBuffer to read from @param buf_size number of bytes to read @param func generic read function @param dest data destination

@return a non-negative number on success, a negative error code on failure

@deprecated use the new AVFifo-API with av_fifo_peek() when func == NULL, av_fifo_peek_to_cb() otherwise