public override void Read(BoxReader reader) { using (new SizeChecker(this, reader)) { base.Read(reader); entryCount = reader.ReadUInt32(); editList = new EditList[entryCount]; for (int i = 0; i < entryCount; i++) { if (Version == 0) { editList[i].segmentDuration = reader.ReadUInt32(); editList[i].mediaTime = reader.ReadInt32(); } else // must be 1 { editList[i].segmentDuration = reader.ReadUInt64(); editList[i].mediaTime = reader.ReadInt64(); } editList[i].mediaRateInteger = (short)reader.ReadInt16(); editList[i].mediaRateFraction = (short)reader.ReadInt16(); } } }
public override void Read(BoxReader reader) { using (new SizeChecker(this, reader)) { base.Read(reader); entryCount = reader.ReadUInt32(); editList = new EditList[entryCount]; for (int i = 0; i < entryCount; i++) { if (Version == 0) { editList[i].segmentDuration = reader.ReadUInt32(); editList[i].mediaTime = reader.ReadInt32(); } else // must be 1 { editList[i].segmentDuration = reader.ReadUInt64(); editList[i].mediaTime = reader.ReadInt64(); } editList[i].mediaRateInteger = (short)reader.ReadInt16(); editList[i].mediaRateFraction = (short)reader.ReadInt16(); } } }