Skip to main content

packet_bytes

Function packet_bytes 

Source
pub fn packet_bytes(packet: &AVPacket) -> Vec<u8> ⓘ
Expand description

Copies one packet’s payload out of FFmpeg’s buffer.

AVPacket exposes its bytes as a raw pointer and a length, which is the kind of pair this crate exists to keep out of the rest of the binding.