public Trak(FileStream fs, ulong maximumLength) { pos = (ulong)fs.Position; while (fs.Position < (long)maximumLength) { if (!InitializeSizeAndName(fs)) return; if (name == "mdia") Mdia = new Mdia(fs, pos); else if (name == "tkhd") Tkhd = new Tkhd(fs, pos); fs.Seek((long)pos, SeekOrigin.Begin); } }
public Trak(FileStream fs, ulong maximumLength) { Position = (ulong)fs.Position; while (fs.Position < (long)maximumLength) { if (!InitializeSizeAndName(fs)) { return; } if (Name == "mdia") { Mdia = new Mdia(fs, Position); } else if (Name == "tkhd") { Tkhd = new Tkhd(fs); } fs.Seek((long)Position, SeekOrigin.Begin); } }