소스 검색

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.
Bluebull32 10 년 전
부모
커밋
af9bd11568
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      MediaBrowser.Api/Playback/BifService.cs

+ 1 - 1
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;
         }