mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Update BifService.cs
Reversing endianness for integers in the index.bif file. Little Endian is what we want here, so if BitConverter does NOT give us that, then we need to reverse the bytes.
This commit is contained in:
parent
f3e98dde6a
commit
af9bd11568
@ -155,7 +155,7 @@ namespace MediaBrowser.Api.Playback
|
||||
private byte[] GetBytes(int value)
|
||||
{
|
||||
byte[] bytes = BitConverter.GetBytes(value);
|
||||
if (BitConverter.IsLittleEndian)
|
||||
if (!BitConverter.IsLittleEndian)
|
||||
Array.Reverse(bytes);
|
||||
return bytes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user