From 895ae2d4e1cf32446773c776905c6dadc9812b95 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Fri, 6 Oct 2023 11:37:41 +0500 Subject: [PATCH] aded flv metadata processing errors --- src/util/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") } } }