Fix OggStream "invalid header magic" at end of stream
This commit is contained in:
parent
a238c6178a
commit
51b3143319
@ -77,6 +77,8 @@ class OggStream:
|
|||||||
head = self.stream.read(4)
|
head = self.stream.read(4)
|
||||||
if head == b'OggS':
|
if head == b'OggS':
|
||||||
return OggPage(self.stream)
|
return OggPage(self.stream)
|
||||||
|
elif not head:
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
raise OggError('invalid header magic')
|
raise OggError('invalid header magic')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user