pub fn packet_from_bytes(data: &[u8]) -> Result<AVPacket, BridgeError>Expand description
A packet holding a copy of data, every other field at its default.
An encoder that is not FFmpeg’s (OpenH264, loaded at run time) hands
its output over as bytes, and the muxer takes packets; rsmpeg can make an
empty packet but not give one a payload.
§Errors
When data is larger than a packet can be, or the packet cannot be
allocated.