aded flv metadata processing errors

This commit is contained in:
Muaz Ahmad 2023-10-06 11:37:41 +05:00
parent 526a4d6068
commit 895ae2d4e1

View file

@ -61,6 +61,7 @@ pub enum DemuxerError {
FLVUnknownTagType, FLVUnknownTagType,
FLVCheckFail, FLVCheckFail,
FLVPacketNotMetadata, FLVPacketNotMetadata,
FLVMetadataSyncFail,
} }
impl Error for DemuxerError {} 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::UnknownSyncByte => write!(f, "sync byte does not match any implemented input format"),
DemuxerError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values"), DemuxerError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values"),
DemuxerError::FLVCheckFail => write!(f, "Input does not contain assumed FLV signature"), 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")
} }
} }
} }