aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-07-10 01:53:46 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 10:52:50 +0100
commit5cd5c5a8d466f97d98147ee842af681347dc9b05 (patch)
tree66e583c3309f3393d98017f18f50333d0c4f71eb
parent77b31e1e2004fbe83c7bce2faf11818ff7b7e4b0 (diff)
aiff: support the AIFC format
-rw-r--r--NEWS2
-rw-r--r--src/aiff.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index eaa69896..60dabb30 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 06de9ffe..f66f29e2 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;