summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Smucr <msmucr@gmail.com>2013-12-19 09:32:01 +0100
committerMax Kellermann <max@duempel.org>2013-12-19 09:35:54 +0100
commite4d69f38b028ab6665a3c14ab27df188e6e39022 (patch)
tree360372e326afd4fee969418a18df68c8503e5a95 /src
parent97fc001180e13fb6eea678d6e2c3926418a1b6bb (diff)
riff: recognize upper-case "ID3" chunk name
Some tagging libraries (eg. TagLib) produce that variant.
Diffstat (limited to 'src')
-rw-r--r--src/tag/Riff.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tag/Riff.cxx b/src/tag/Riff.cxx
index ad64afc39..ac162bc24 100644
--- a/src/tag/Riff.cxx
+++ b/src/tag/Riff.cxx
@@ -87,7 +87,8 @@ riff_seek_id3(FILE *file)
/* pad byte */
++size;
- if (memcmp(chunk.id, "id3 ", 4) == 0)
+ if (memcmp(chunk.id, "id3 ", 4) == 0 ||
+ memcmp(chunk.id, "ID3 ", 4) == 0)
/* found it! */
return size;