Skip to content

Commit e8cf615

Browse files
committed
Fix marker endianness
1 parent eeb5486 commit e8cf615

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Authors>Tristan Stenner</Authors>
44
<Company>IMPS UKSH Kiel</Company>
55
<Product>NEDF Reader</Product>
6-
<Version>1.1.0</Version>
6+
<Version>1.1.1</Version>
77
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
88
<OutputPath>$(SolutionDir)bin\$(Configuration)_$(TargetFramework)\$(MSBuildProjectName)</OutputPath>
99
<OutDir>$(OutputPath)</OutDir>

nedfreader/NedfFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public float[] GetData(uint startsample, uint length, int[] channelList)
135135
if (i % 5 == 0) infile.Seek(Chunkfrontlength(), SeekOrigin.Current);
136136
infile.Seek(Samplesize() - 4, SeekOrigin.Current);
137137
infile.Read(buffer, 0, 4);
138-
var t = buffer[0] | (buffer[1] << 8) | (buffer[2] << 16) | (buffer[3] << 24);
138+
var t = buffer[3] | (buffer[2] << 8) | (buffer[1] << 16) | (buffer[0] << 24);
139139
if (t != 0)
140140
markers.Add(new ValueTuple<uint, uint>(i, (uint)t));
141141
}

0 commit comments

Comments
 (0)