[go: up one dir, main page]

Function infer::is_video

source · []
pub fn is_video(buf: &[u8]) -> bool
Expand description

Determines whether a buffer is a video type.

Examples

use std::fs;
assert!(infer::is_video(&fs::read("testdata/sample.mov").unwrap()));