Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions pyogg/ogg_opus_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def __init__(self,

# Create a packet (reused for each pass)
self._ogg_packet = ogg.ogg_packet()
self._packet_valid = False

# Create a page (reused for each pass)
self._ogg_page = ogg.ogg_page()
Expand Down Expand Up @@ -174,14 +173,6 @@ def close(self) -> None:
# Flush the underlying buffered encoder
self._write_to_oggopus(memoryview(bytearray(b"")), flush=True)

# The current packet must be the end of the stream, update
# the packet's details
self._ogg_packet.e_o_s = 1

# Write the packet to the stream
if self._packet_valid:
self._write_packet()

# Flush the stream of any unwritten pages
self._flush()

Expand Down