跳到主要内容

av_frame_replace

搜索

函数 av_frame_replace 

源代码
pub unsafe extern "C" fn av_frame_replace(
    dst: *mut AVFrame,
    src: *const AVFrame,
) -> c_int
展开描述

Ensure the destination frame refers to the same data described by the source frame, either by creating a new reference for each AVBufferRef from src if they differ from those in dst, by allocating new buffers and copying data if src is not reference counted, or by unreferencing it if src is empty.

Frame properties on dst will be replaced by those from src.

@return 0 on success, a negative AVERROR on error. On error, dst is unreferenced.