TeamPyOgg / PyOgg

Simple OGG Vorbis, Opus and FLAC bindings for Python
The Unlicense
63 stars 27 forks source link

Remove now dead code on `OggOpusWriter` #110

Open AlexTMjugador opened 3 weeks ago

AlexTMjugador commented 3 weeks ago

https://github.com/TeamPyOgg/PyOgg/commit/d2a59e04cd1df047694c4208c7d07bc6ba6316b4 left the _packet_valid field unused, and always set to False. Generating an EOS packet and page is now done by the encoder as part of the _write_to_oggopus invocation, so there is no need for any new packet writing logic on close() anymore.