ref: 1915e8269f81fb78c7289a56c5a85b4b88cf0a6c
parent: f5bdfcd8820535bd86767ebe4382564253e51361
author: cbagwell <cbagwell>
date: Sun Nov 23 13:37:15 EST 2008
Add in non-compressed big-endian "twos" format that seems to exists (rare).
--- a/src/aiff.c
+++ b/src/aiff.c
@@ -149,7 +149,8 @@
/* Need to endian swap all the data */
is_sowt = 1;
}
- else if (strncmp(buf, "NONE", (size_t)4) != 0)
+ else if (strncmp(buf, "NONE", (size_t)4) != 0 &&
+ strncmp(buf, "twos", (size_t)4) != 0)
{
buf[4] = 0;
lsx_fail_errno(ft,SOX_EHDR,"AIFC files that contain compressed data are not supported: %s",buf);