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

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.18.6 (not yet released)
* input
- cdio_paranoia: support libcdio-paranoia 0.90
* tags
- riff: recognize upper-case "ID3" chunk name
* output
- openal: fix build failure on Mac OS X
- osx: fix build failure

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;