riff: recognize upper-case "ID3" chunk name

Some tagging libraries (eg. TagLib) produce that variant.
This commit is contained in:
Michal Smucr
2013-12-19 09:32:01 +01:00
committed by Max Kellermann
parent 97fc001180
commit e4d69f38b0
2 changed files with 4 additions and 1 deletions

View File

@@ -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;