[][src]Function audiopus_sys::opus_packet_unpad

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

Remove all padding from a given Opus 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. @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. @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet.