Function av_frame_clone

Source
pub unsafe extern "C" fn av_frame_clone(
    src: *const AVFrame,
) -> *mut AVFrame
Expand description

Create a new frame that references the same data as src.

This is a shortcut for av_frame_alloc()+av_frame_ref().

@return newly created AVFrame on success, NULL on error.