[][src]Function audiopus_sys::opus_multistream_packet_unpad

pub unsafe extern "C" fn opus_multistream_packet_unpad(
    data: *mut c_uchar,
    len: opus_int32,
    nb_streams: c_int
) -> opus_int32

Remove all padding from a given Opus multi-stream packet and rewrite the TOC sequence to minimize space usage. @param[in,out] data const unsigned char*: The buffer containing the packet to strip. @param len opus_int32: The size of the packet. This must be at least 1. @param nb_streams opus_int32: The number of streams (not channels) in the packet. This must be at least 1. @returns The new size of the output packet on success, or an error code on failure. @retval #OPUS_BAD_ARG \a len was less than 1 or new_len was less than len. @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet.