Function ffmpeg_sys_the_third::av_frame_ref

source ·
pub unsafe extern "C" fn av_frame_ref(
    dst: *mut AVFrame,
    src: *const AVFrame
) -> c_int
Expand description

Set up a new reference to the data described by the source frame.

Copy frame properties from src to dst and create a new reference for each AVBufferRef from src.

If src is not reference counted, new buffers are allocated and the data is copied.

@warning: dst MUST have been either unreferenced with av_frame_unref(dst), or newly allocated with av_frame_alloc() before calling this function, or undefined behavior will occur.

@return 0 on success, a negative AVERROR on error