summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-23 23:11:33 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-23 23:11:33 +0000
commit27b4a64f9b215bde49e2a50aba51698fd56dbd85 (patch)
tree3daca17816be8dd89458ccaa267ca96444396155
parent77a868360f9aac124a6cb368c83d66b31c596ae9 (diff)
AIFF COMM chunks might be larger than 18 bytes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13249 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/aiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c
index 4fed9c0c9e..d663b4b367 100644
--- a/apps/codecs/aiff.c
+++ b/apps/codecs/aiff.c
@@ -98,8 +98,8 @@ next_track:
/* chunkSize */
i = ((buf[4]<<24)|(buf[5]<<16)|(buf[6]<<8)|buf[7]);
if (memcmp(buf, "COMM", 4) == 0) {
- if (i != 18) {
- DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu != 18\n",
+ if (i < 18) {
+ DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu < 18\n",
(unsigned long)i);
i = CODEC_ERROR;
goto done;