pub unsafe extern "C" fn av_frame_replace(
dst: *mut AVFrame,
src: *const AVFrame,
) -> i32
Expand description
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 unrefencing 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.