diff --git a/src/util/mod.rs b/src/util/mod.rs index a4e0c8f..3d940a8 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -61,6 +61,7 @@ pub enum DemuxerError { FLVUnknownTagType, FLVCheckFail, FLVPacketNotMetadata, + FLVMetadataSyncFail, } impl Error for DemuxerError {} @@ -71,7 +72,9 @@ impl fmt::Debug for DemuxerError { DemuxerError::UnknownSyncByte => write!(f, "sync byte does not match any implemented input format"), DemuxerError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values"), DemuxerError::FLVCheckFail => write!(f, "Input does not contain assumed FLV signature"), - DemuxerError::FLVPacketNotMetadata => write!(f, "Did not find expected metadata tag") + DemuxerError::FLVPacketNotMetadata => write!(f, "Did not find expected metadata tag"), + DemuxerError::FLVMetadataSyncFail => write!(f, "ECMA array not where expected"), + _ => write!(f, "Error not described yet") } } }