diff --git a/src/reader.rs b/src/reader.rs index 5a67b68..1365c3f 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -145,6 +145,7 @@ impl Mp4Reader { let mut moofs = Vec::new(); let mut moof_offsets = Vec::new(); + let mut uuids = Vec::new(); let mut current = start; while current < size { @@ -173,6 +174,10 @@ impl Mp4Reader { moofs.push(moof); moof_offsets.push(moof_offset); } + BoxType::UuidBox => { + let uuid = UuidBox::read_box(&mut reader, s)?; + uuids.push(uuid); + } _ => { // XXX warn!() skip_box(&mut reader, s)?; @@ -216,8 +221,8 @@ impl Mp4Reader { ftyp: self.ftyp.clone(), moov: self.moov.clone(), moofs, - emsgs: self.emsgs.clone(), - uuids: self.uuids.clone(), + emsgs: Vec::new(), + uuids, tracks, size, })