Skip to main content

set_packet_side_data

Function set_packet_side_data 

Source
pub fn set_packet_side_data(
    packet: &mut AVPacket,
    kind: AVPacketSideDataType,
    data: &[u8],
) -> Result<(), BridgeError>
Expand description

Gives packet side data of kind holding data, replacing any it had.

§Errors

When the side data cannot be allocated, or data is larger than a packet’s side data can be.