From 5c5c95418ca342c00a32199d017b71265b8deb4b Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Mon, 11 Jul 2022 23:09:06 -0400 Subject: [PATCH] MP4: Fix subtraction --- src/mp4/atom_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mp4/atom_info.rs b/src/mp4/atom_info.rs index 9be9c462..8d7341cb 100644 --- a/src/mp4/atom_info.rs +++ b/src/mp4/atom_info.rs @@ -107,8 +107,8 @@ fn parse_freeform(data: &mut R, reader_size: u64) -> Result where R: Read + Seek, { - let mean = freeform_chunk(data, b"mean", reader_size - 4)?; - let name = freeform_chunk(data, b"name", reader_size - 8)?; + let mean = freeform_chunk(data, b"mean", reader_size)?; + let name = freeform_chunk(data, b"name", reader_size - 4)?; Ok(AtomIdent::Freeform { mean, name }) }