[−][src]Function ffav_sys::av_packet_add_side_data
pub unsafe extern "C" fn av_packet_add_side_data(
pkt: *mut AVPacket,
type_: AVPacketSideDataType,
data: *mut u8,
size: usize
) -> c_int
Wrap an existing array as a packet side data.
@param pkt packet @param type side information type @param data the side data array. It must be allocated with the av_malloc() family of functions. The ownership of the data is transferred to pkt. @param size side information size @return a non-negative number on success, a negative AVERROR code on failure. On failure, the packet is unchanged and the data remains owned by the caller.