summaryrefslogtreecommitdiff
path: root/apps/codecs/aiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r--apps/codecs/aiff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c
index e154bce583..4fed9c0c9e 100644
--- a/apps/codecs/aiff.c
+++ b/apps/codecs/aiff.c
@@ -99,7 +99,8 @@ next_track:
99 i = ((buf[4]<<24)|(buf[5]<<16)|(buf[6]<<8)|buf[7]); 99 i = ((buf[4]<<24)|(buf[5]<<16)|(buf[6]<<8)|buf[7]);
100 if (memcmp(buf, "COMM", 4) == 0) { 100 if (memcmp(buf, "COMM", 4) == 0) {
101 if (i != 18) { 101 if (i != 18) {
102 DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu != 18\n", i); 102 DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu != 18\n",
103 (unsigned long)i);
103 i = CODEC_ERROR; 104 i = CODEC_ERROR;
104 goto done; 105 goto done;
105 } 106 }
@@ -136,7 +137,7 @@ next_track:
136 i = 8 + offset2snd; /* advance to the beginning of data */ 137 i = 8 + offset2snd; /* advance to the beginning of data */
137 } else { 138 } else {
138 DEBUGF("unsupported AIFF chunk: '%c%c%c%c', size=%lu\n", 139 DEBUGF("unsupported AIFF chunk: '%c%c%c%c', size=%lu\n",
139 buf[0], buf[1], buf[2], buf[3], i); 140 buf[0], buf[1], buf[2], buf[3], (unsigned long)i);
140 } 141 }
141 142
142 if (i & 0x01) /* odd chunk sizes must be padded */ 143 if (i & 0x01) /* odd chunk sizes must be padded */