Пример #1
0
 protected override void LoadFromStream(System.IO.Stream stream)
 {
     base.LoadFromStream(stream);
     if (Version == 1)
     {
         BaseMediaDecodeTime   = stream.ReadBEUInt64();
         TrackFragmentDuration = stream.ReadBEUInt64();
     }
     else   /* Version == 0 */
     {
         BaseMediaDecodeTime   = stream.ReadBEUInt32();
         TrackFragmentDuration = stream.ReadBEUInt32();
     }
     if (HasNTP())
     {
         NtpTimestampInteger  = stream.ReadBEUInt32();
         NtpTimestampFraction = stream.ReadBEUInt32();
     }
 }