Fix OggStream "invalid header magic" at end of stream

This commit is contained in:
rkevin 2019-11-05 01:26:20 -08:00 committed by Rapptz
parent a238c6178a
commit 51b3143319

View File

@ -77,6 +77,8 @@ class OggStream:
head = self.stream.read(4)
if head == b'OggS':
return OggPage(self.stream)
elif not head:
return None
else:
raise OggError('invalid header magic')