Function av_fifo_write
pub unsafe extern "C" fn av_fifo_write(
f: *mut AVFifo,
buf: *const c_void,
nb_elems: usize,
) -> i32
Expand description
Write data into a FIFO.
In case nb_elems > av_fifo_can_write(f) and the AV_FIFO_FLAG_AUTO_GROW flag was not specified at FIFO creation, nothing is written and an error is returned.
Calling function is guaranteed to succeed if nb_elems <= av_fifo_can_write(f).
@param f the FIFO buffer @param buf Data to be written. nb_elems * av_fifo_elem_size(f) bytes will be read from buf on success. @param nb_elems number of elements to write into FIFO
@return a non-negative number on success, a negative error code on failure