From 3fd77ce8f5efa95cd91f406b81b25b394df4ef7f Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Tue, 3 Oct 2017 20:44:48 -0700 Subject: [PATCH] Fix reading plWAVHeader in korlib. The plWAVHeader expects to start its read *after* the chunk size. --- korman/korlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/korlib/__init__.py b/korman/korlib/__init__.py index 3b5b690..2120f7e 100644 --- a/korman/korlib/__init__.py +++ b/korman/korlib/__init__.py @@ -63,8 +63,8 @@ else: def _wave_chunks(stream): while not stream.eof(): chunk_name = stream.read(4) - chunk_offset = stream.pos chunk_size = stream.readInt() + chunk_offset = stream.pos stream.skip(chunk_size) yield {"name": chunk_name, "offset": chunk_offset, "size": chunk_size}