Function av_stream_add_side_data

Source
pub unsafe extern "C" fn av_stream_add_side_data(
    st: *mut AVStream,
    type_: u32,
    data: *mut u8,
    size: usize,
) -> i32
Expand description

Wrap an existing array as stream side data.

@param st stream @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 st. @param size side information size

@return zero on success, a negative AVERROR code on failure. On failure, the stream is unchanged and the data remains owned by the caller. @deprecated use av_packet_side_data_add() with the stream’s @ref AVCodecParameters.coded_side_data “codecpar side data”