Kaydet (Commit) ebea896e authored tarafından Sjoerd Mullender's avatar Sjoerd Mullender

Ignore empty markers.

üst 3a80c8de
...@@ -593,7 +593,11 @@ class Aifc_read: ...@@ -593,7 +593,11 @@ class Aifc_read:
id = _read_short(chunk) id = _read_short(chunk)
pos = _read_long(chunk) pos = _read_long(chunk)
name = _read_string(chunk) name = _read_string(chunk)
self._markers.append((id, pos, name)) if pos or name:
# some files appear to have
# dummy markers consisting of
# a position 0 and name ''
self._markers.append((id, pos, name))
except EOFError: except EOFError:
print 'Warning: MARK chunk contains only', print 'Warning: MARK chunk contains only',
print len(self._markers), print len(self._markers),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment