diff options
| author | cvium <clausvium@gmail.com> | 2021-09-25 23:37:41 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-09-25 23:37:41 +0200 |
| commit | 41383e6fe4d2ae80552c1b3df0b469f5416f2d89 (patch) | |
| tree | cb1f96dc3e555e23f213abdac0d61d4fd8558d85 /src | |
| parent | 64a13a5d42da4a27d203f49d69069a635b5f199e (diff) | |
Review comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/Jellyfin.MediaEncoding.Keyframes/Matroska/Extensions/EbmlReaderExtensions.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Extensions/EbmlReaderExtensions.cs b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Extensions/EbmlReaderExtensions.cs index a95944ebf..75d5aafe0 100644 --- a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Extensions/EbmlReaderExtensions.cs +++ b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Extensions/EbmlReaderExtensions.cs @@ -1,4 +1,5 @@ using System; +using System.Buffers.Binary; using Jellyfin.MediaEncoding.Keyframes.Matroska.Models; using NEbml.Core; @@ -37,12 +38,7 @@ namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Extensions { var buffer = new byte[4]; reader.ReadBinary(buffer, 0, 4); - if (BitConverter.IsLittleEndian) - { - Array.Reverse(buffer); - } - - return BitConverter.ToUInt32(buffer); + return BinaryPrimitives.ReadUInt32BigEndian(buffer); } /// <summary> |
