Skip to content

Commit

Permalink
Merge pull request #441 from NetNerd/patch-1
Browse files Browse the repository at this point in the history
recognise MP3 Xing headers with 'Info' magic
  • Loading branch information
markheath authored Jan 31, 2020
2 parents 6bd2dee + 0981bda commit 58aad8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NAudio/FileFormats/Mp3/XingHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ public static XingHeader LoadXingHeader(Mp3Frame frame)
xingHeader.startOffset = offset;
offset += 4;
}
else if ((frame.RawData[offset + 0] == 'I') &&
(frame.RawData[offset + 1] == 'n') &&
(frame.RawData[offset + 2] == 'f') &&
(frame.RawData[offset + 3] == 'o'))
{
xingHeader.startOffset = offset;
offset += 4;
}
else
{
return null;
Expand Down

0 comments on commit 58aad8b

Please sign in to comment.