From 5385d1fa80b08752bd99d14bd826438310e10b3e Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 10 Jul 2012 01:53:46 +0200
Subject: [PATCH] aiff: support the AIFC format

---
 NEWS       | 2 ++
 src/aiff.c | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index eaa698963..60dabb301 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 ver 0.17.1 (2012/??/??)
 * protocol:
   - require appropriate permissions for searchadd{,pl}
+* tags:
+  - aiff: support the AIFC format
 * output:
   - fix noisy playback with conversion and software volume
 
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;