Skip to main content

pad_packet

Function pad_packet 

Source
pub fn pad_packet(
    packet: &mut Vec<u8>,
    new_len: usize,
) -> Result<(), &'static str>
Expand description

opus_packet_pad: grow packet in place to new_len bytes by adding opus padding (no re-encode). No-op if already new_len; errors if new_len is smaller.