コード例 #1
0
ファイル: Trak.cs プロジェクト: ItsJustSean/subtitleedit
        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);
            }
        }
コード例 #2
0
        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);
            }
        }