aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBluebull32 <Bluebull32@yahoo.com>2015-01-31 14:39:16 -0500
committerBluebull32 <Bluebull32@yahoo.com>2015-01-31 14:39:16 -0500
commitaf9bd11568e6a8d009d793e4a75aeeb84a3518af (patch)
tree3afad6f46ea0e41b9d5112336227575304b236bf
parentf3e98dde6a82a28e5ba1c8eb2cd57eb5a41d0bd3 (diff)
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.
-rw-r--r--MediaBrowser.Api/Playback/BifService.cs2
1 files changed, 1 insertions, 1 deletions
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;
}