Function av_fifo_generic_peek_at

pub unsafe extern "C" fn av_fifo_generic_peek_at(
    f: *mut AVFifoBuffer,
    dest: *mut c_void,
    offset: i32,
    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 at specific position 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 offset offset from current read position @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