Function mp4san::sanitize

source ·
pub fn sanitize<R: Read + Skip + Unpin>(
    input: R
) -> Result<SanitizedMetadata, Error>
Expand description

Sanitize an MP4 input, with the default Config.

The input must implement Read + Skip, where Skip represents a subset of the Seek trait; an input stream which can be skipped forward, but not necessarily seeked to arbitrary positions.

See the module-level documentation for usage examples.

Errors

If the input cannot be parsed, or an IO error occurs, an Error is returned.