Skip to content

Commit

Permalink
Eliminate allocation in WavFactHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon committed Jan 31, 2024
1 parent 189d66f commit 76c687e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetadataExtractor/Formats/Wav/WavFactHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public WavFactHandler(List<Directory> 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());
}
}
Expand Down

0 comments on commit 76c687e

Please sign in to comment.