MP4: Fix subtraction

This commit is contained in:
Serial 2022-07-11 23:09:06 -04:00
parent 542f7dabc7
commit 5c5c95418c
No known key found for this signature in database
GPG key ID: DA95198DC17C4568

View file

@ -107,8 +107,8 @@ fn parse_freeform<R>(data: &mut R, reader_size: u64) -> Result<AtomIdent>
where where
R: Read + Seek, R: Read + Seek,
{ {
let mean = freeform_chunk(data, b"mean", reader_size - 4)?; let mean = freeform_chunk(data, b"mean", reader_size)?;
let name = freeform_chunk(data, b"name", reader_size - 8)?; let name = freeform_chunk(data, b"name", reader_size - 4)?;
Ok(AtomIdent::Freeform { mean, name }) Ok(AtomIdent::Freeform { mean, name })
} }