[][src]Function stainless_ffmpeg_sys::av_buffersrc_add_frame_flags

pub unsafe extern "C" fn av_buffersrc_add_frame_flags(
    buffer_src: *mut AVFilterContext,
    frame: *mut AVFrame,
    flags: c_int
) -> c_int

Add a frame to the buffer source.

By default, if the frame is reference-counted, this function will take ownership of the reference(s) and reset the frame. This can be controlled using the flags.

If this function returns an error, the input frame is not touched.

@param buffer_src pointer to a buffer source context @param frame a frame, or NULL to mark EOF @param flags a combination of AV_BUFFERSRC_FLAG_* @return >= 0 in case of success, a negative AVERROR code in case of failure