Browse Source

Fix reading plWAVHeader in korlib.

The plWAVHeader expects to start its read *after* the chunk size.
pull/77/head
Joseph Davies 7 years ago
parent
commit
3fd77ce8f5
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 2
      korman/korlib/__init__.py

2
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}

Loading…
Cancel
Save