av_packet_add_side_data

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.

extern (C) @nogc nothrow
int
av_packet_add_side_data

Meta