mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Review comment
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Buffers.Binary;
|
||||||
using Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
|
using Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
|
||||||
using NEbml.Core;
|
using NEbml.Core;
|
||||||
|
|
||||||
@@ -37,12 +38,7 @@ namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Extensions
|
|||||||
{
|
{
|
||||||
var buffer = new byte[4];
|
var buffer = new byte[4];
|
||||||
reader.ReadBinary(buffer, 0, 4);
|
reader.ReadBinary(buffer, 0, 4);
|
||||||
if (BitConverter.IsLittleEndian)
|
return BinaryPrimitives.ReadUInt32BigEndian(buffer);
|
||||||
{
|
|
||||||
Array.Reverse(buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
return BitConverter.ToUInt32(buffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user