Function av_packet_side_data_add
pub unsafe extern "C" fn av_packet_side_data_add(
sd: *mut *mut AVPacketSideData,
nb_sd: *mut i32,
type_: u32,
data: *mut c_void,
size: usize,
flags: i32,
) -> *mut AVPacketSideData
Expand description
Wrap existing data as packet side data.
@param sd pointer to an array of side data to which the side data should be added. *sd may be NULL, in which case the array will be initialized @param nb_sd pointer to an integer containing the number of entries in the array. The integer value will be increased by 1 on success. @param type side data type @param data a data array. It must be allocated with the av_malloc() family of functions. The ownership of the data is transferred to the side data array on success @param size size of the data array @param flags currently unused. Must be zero
@return pointer to freshly allocated side data on success, or NULL otherwise On failure, the side data array is unchanged and the data remains owned by the caller.