pub unsafe extern "C" fn av_frame_side_data_clone(
sd: *mut *mut *mut AVFrameSideData,
nb_sd: *mut i32,
src: *const AVFrameSideData,
flags: u32,
) -> i32
Expand description
Add a new side data entry to an array based on existing side data, taking a reference towards the contained AVBufferRef.
@param sd pointer to array of side data to which to add another entry, or to NULL in order to start a new array. @param nb_sd pointer to an integer containing the number of entries in the array. @param src side data to be cloned, with a new reference utilized for the buffer. @param flags Some combination of AV_FRAME_SIDE_DATA_FLAG_* flags, or 0.
@return negative error code on failure, >=0 on success. @note In case of AV_FRAME_SIDE_DATA_FLAG_UNIQUE being set, entries of matching AVFrameSideDataType will be removed before the addition is attempted. @note In case of AV_FRAME_SIDE_DATA_FLAG_REPLACE being set, if an entry of the same type already exists, it will be replaced instead.