修复UInt64读取问题

This commit is contained in:
nilaoda 2022-07-20 11:30:59 +08:00
parent 9fa3afca78
commit 9b799662ce
1 changed files with 7 additions and 0 deletions

View File

@ -59,5 +59,12 @@ namespace Mp4SubtitleParser
return BitConverter.ToUInt32(data, 0);
}
public override ulong ReadUInt64()
{
var data = base.ReadBytes(8);
if (BitConverter.IsLittleEndian)
Array.Reverse(data);
return BitConverter.ToUInt64(data, 0);
}
}
}