--- Lib/chunk.py.orig 2008-03-10 14:26:50.779400000 +0900 +++ Lib/chunk.py 2008-03-10 23:41:32.559400000 +0900 @@ -140,7 +140,7 @@ self.size_read = self.size_read + len(dummy) return data - def skip(self): + def skip(self, ignoreAlign=False): """Skip the rest of the chunk. If you are not interested in the contents of the chunk, this method should be called so that the file points to @@ -153,7 +153,7 @@ try: n = self.chunksize - self.size_read # maybe fix alignment - if self.align and (self.chunksize & 1): + if self.align and not ignoreAlign and (self.chunksize & 1): n = n + 1 self.file.seek(n, 1) self.size_read = self.size_read + n