#[non_exhaustive]pub enum Error {
TimestampRange,
CompositionTimeRange,
TagTooLarge(usize),
TooManyTracks(&'static str),
MissingConfigRecord(String),
CodecChanged(String),
UnsupportedContainer {
kind: &'static str,
name: String,
container: String,
},
UnsupportedVideoCodec(String),
UnsupportedAudioCodec(String),
Malformed(String),
}Expand description
FLV import and export errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TimestampRange
A decode or presentation time falls before the stream’s origin or past FLV’s 32-bit millisecond timestamp.
CompositionTimeRange
A composition time offset does not fit FLV’s signed 24-bit field.
TagTooLarge(usize)
A tag body exceeds FLV’s 24-bit DataSize field (16 MiB).
TooManyTracks(&'static str)
More renditions of one kind than FLV’s 8-bit multitrack id can number.
MissingConfigRecord(String)
A codec that needs a sequence-header tag has no config record.
CodecChanged(String)
A rendition moved to a track with another codec after the stream header fixed its tags.
UnsupportedContainer
A rendition’s container is not one whose frames FLV tags carry as is.
Fields
UnsupportedVideoCodec(String)
The video codec has no FLV or enhanced-RTMP mapping.
UnsupportedAudioCodec(String)
The audio codec has no FLV or enhanced-RTMP mapping.
Malformed(String)
The FLV stream an import reads breaks the format, or uses a codec or layout it does not carry.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()