error better categorized
This commit is contained in:
parent
44a4db496d
commit
8720837429
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue