--- Lib/aifc.py.orig 2008-03-10 12:49:21.331200000 +0900 +++ Lib/aifc.py 2008-03-11 01:47:51.867132700 +0900 @@ -144,9 +144,6 @@ _AIFC_version = 0xA2805140L # Version 1 of AIFF-C -_skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \ - 'APPL', 'NAME', 'AUTH', '(c) ', 'ANNO' - def _read_long(file): try: return struct.unpack('>l', file.read(4))[0] @@ -314,11 +311,13 @@ self._version = _read_ulong(chunk) elif chunkname == 'MARK': self._readmark(chunk) - elif chunkname in _skiplist: + else: pass + + if chunkname=='SSND': + chunk.skip(True) else: - raise Error, 'unrecognized chunk type '+chunk.chunkname - chunk.skip() + chunk.skip() if not self._comm_chunk_read or not self._ssnd_chunk: raise Error, 'COMM chunk and/or SSND chunk missing' if self._aifc and self._decomp: