Skip to main content

sniff

Function sniff 

Source
pub fn sniff(head: &[u8]) -> Result<ContainerFormat, DemuxError>
Expand description

The format of a file starting with head (at least its first 4096 bytes when it has them).

ยงErrors

DemuxError::Unsupported for MPEG-TS, AVI and anything unrecognized.