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.
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