error better categorized

This commit is contained in:
Muaz Ahmad 2023-10-05 16:29:30 +05:00
parent 44a4db496d
commit 8720837429

View file

@ -16,6 +16,6 @@ pub fn new_reader() -> Result<impl FileReader, Box<dyn Error>> {
stdin_hndl.read_exact(&mut byte1)?; stdin_hndl.read_exact(&mut byte1)?;
match &byte1[0] { match &byte1[0] {
0x46 => flv::new_reader(stdin_hndl), 0x46 => flv::new_reader(stdin_hndl),
_ => Err(Box::new(util::GenericError::UnknownSyncByte)) _ => Err(Box::new(util::DemuxerError::UnknownSyncByte))
} }
} }