mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-05-25 14:51:52 +00:00
修复UInt64读取问题
This commit is contained in:
parent
9fa3afca78
commit
9b799662ce
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user