aboutsummaryrefslogtreecommitdiffstats
path: root/src/aiff.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-07-10 01:53:46 +0200
committerMax Kellermann <max@duempel.org>2012-07-10 01:53:46 +0200
commit5385d1fa80b08752bd99d14bd826438310e10b3e (patch)
tree66e583c3309f3393d98017f18f50333d0c4f71eb /src/aiff.c
parentdbee2f199640ec296b049801fe79e35c4b3424f6 (diff)
downloadmpd-5385d1fa80b08752bd99d14bd826438310e10b3e.tar.gz
mpd-5385d1fa80b08752bd99d14bd826438310e10b3e.tar.xz
mpd-5385d1fa80b08752bd99d14bd826438310e10b3e.zip
aiff: support the AIFC format
Diffstat (limited to '')
-rw-r--r--src/aiff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aiff.c b/src/aiff.c
index 06de9ffe7..f66f29e2d 100644
--- a/src/aiff.c
+++ b/src/aiff.c
@@ -73,7 +73,8 @@ aiff_seek_id3(FILE *file)
if (size != 1 ||
memcmp(header.id, "FORM", 4) != 0 ||
GUINT32_FROM_BE(header.size) > (uint32_t)st.st_size ||
- memcmp(header.format, "AIFF", 4) != 0)
+ (memcmp(header.format, "AIFF", 4) != 0 &&
+ memcmp(header.format, "AIFC", 4) != 0))
/* not a AIFF file */
return 0;