pub enum PacketBuildError {
Ffmpeg(Error),
UnknownSideData {
kind: i32,
limit: i32,
},
SideDataAlloc {
kind: i32,
size: usize,
},
}Expand description
Why a portable packet could not be rebuilt as an AVPacket.
The reverse direction is what feeds a decoder, so everything the forward direction captured has to survive it or the capture was theatre.
Variants§
Ffmpeg(Error)
The packet body could not be allocated or is larger than
AVPacket.size can hold.
UnknownSideData
A side-data entry whose type this build of FFmpeg does not name.
Refused rather than dropped: this crate carries side-data types as the raw integers they are on the wire, and handing an unknown one to C would either form an invalid enum discriminant or attach a type nothing downstream can read. Everything the demuxer captured came from this same build and is in range, so this only answers a hand-built entry.
Fields
SideDataAlloc
FFmpeg refused the side-data allocation.
Trait Implementations§
Source§impl Clone for PacketBuildError
impl Clone for PacketBuildError
Source§fn clone(&self) -> PacketBuildError
fn clone(&self) -> PacketBuildError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PacketBuildError
impl Debug for PacketBuildError
Source§impl Display for PacketBuildError
impl Display for PacketBuildError
impl Eq for PacketBuildError
Source§impl Error for PacketBuildError
impl Error for PacketBuildError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()