From af9bd11568e6a8d009d793e4a75aeeb84a3518af Mon Sep 17 00:00:00 2001 From: Bluebull32 Date: Sat, 31 Jan 2015 14:39:16 -0500 Subject: [PATCH] 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. --- MediaBrowser.Api/Playback/BifService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Api/Playback/BifService.cs b/MediaBrowser.Api/Playback/BifService.cs index 057d81441..181cdfe89 100644 --- a/MediaBrowser.Api/Playback/BifService.cs +++ b/MediaBrowser.Api/Playback/BifService.cs @@ -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; }