Fix OggStream "invalid header magic" at end of stream

This commit is contained in:
rkevin
2019-11-19 21:06:28 -05:00
committed by Rapptz
parent a238c6178a
commit 51b3143319
+2
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')