[][src]Function ffmpeg_sys_next::av_buffersrc_add_frame

pub unsafe extern "C" fn av_buffersrc_add_frame(
    ctx: *mut AVFilterContext,
    frame: *mut AVFrame
) -> c_int

Add a frame to the buffer source.

@param ctx an instance of the buffersrc filter @param frame frame to be added. If the frame is reference counted, this function will take ownership of the reference(s) and reset the frame. Otherwise the frame data will be copied. If this function returns an error, the input frame is not touched.

@return 0 on success, a negative AVERROR on error.

@note the difference between this function and av_buffersrc_write_frame() is that av_buffersrc_write_frame() creates a new reference to the input frame, while this function takes ownership of the reference passed to it.

This function is equivalent to av_buffersrc_add_frame_flags() without the AV_BUFFERSRC_FLAG_KEEP_REF flag.