Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebea896

Browse files
Ignore empty markers.
1 parent 3a80c8d commit ebea896

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/aifc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,11 @@ def _readmark(self, chunk):
593593
id = _read_short(chunk)
594594
pos = _read_long(chunk)
595595
name = _read_string(chunk)
596-
self._markers.append((id, pos, name))
596+
if pos or name:
597+
# some files appear to have
598+
# dummy markers consisting of
599+
# a position 0 and name ''
600+
self._markers.append((id, pos, name))
597601
except EOFError:
598602
print 'Warning: MARK chunk contains only',
599603
print len(self._markers),

0 commit comments

Comments
 (0)