pub struct ChapterTimebaseInvalid { /* private fields */ }Expand description
Payload for DemuxError::ChapterTimebaseInvalid.
A chapter declares an AVRational timebase that cannot rule its
span: a zero or negative denominator, a negative numerator, or a
zero numerator.
Stricter than TrackTimebaseInvalid by that last case, and
deliberately: a chapter’s ruler is written by whatever wrote the
chapter, so 0/den there is not an absence but a claim that every
boundary in the table falls on one instant.
The whole open fails, rather than the row being dropped. A chapter table is a table: a reader that quietly returned the other eleven rows would be handing a consumer something that disagrees with the file and says nothing about it. This names the row, its container id and the rational, so a caller learns exactly what the file wrote — and repairing a container is a job for something that rewrites containers, not for a reader that would have to invent the number it repaired with.
Implementations§
Trait Implementations§
Source§impl Clone for ChapterTimebaseInvalid
impl Clone for ChapterTimebaseInvalid
Source§fn clone(&self) -> ChapterTimebaseInvalid
fn clone(&self) -> ChapterTimebaseInvalid
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ChapterTimebaseInvalid
Source§impl Debug for ChapterTimebaseInvalid
impl Debug for ChapterTimebaseInvalid
Source§impl Display for ChapterTimebaseInvalid
impl Display for ChapterTimebaseInvalid
impl Eq for ChapterTimebaseInvalid
Source§impl Error for ChapterTimebaseInvalid
impl Error for ChapterTimebaseInvalid
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()