From 76c687e66978d590683e9f821739e37437ad1f0a Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Wed, 31 Jan 2024 10:16:41 -0800 Subject: [PATCH] Eliminate allocation in WavFactHandler --- MetadataExtractor/Formats/Wav/WavFactHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MetadataExtractor/Formats/Wav/WavFactHandler.cs b/MetadataExtractor/Formats/Wav/WavFactHandler.cs index dac863e59..825b155cb 100644 --- a/MetadataExtractor/Formats/Wav/WavFactHandler.cs +++ b/MetadataExtractor/Formats/Wav/WavFactHandler.cs @@ -25,7 +25,7 @@ public WavFactHandler(List directories) protected override void Populate(WavFactDirectory directory, byte[] payload) { - var reader = new SequentialByteArrayReader(payload, isMotorolaByteOrder: false); + var reader = new BufferReader(payload, isBigEndian: false); directory.Set(TagSampleLength, reader.GetUInt32()); } }