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