TooTallNate / node-ogg

Node.js native binding to libogg
MIT License
65 stars 36 forks source link

Fixed afterPacketout() to retry recoverable warnings #19

Closed LinusU closed 5 years ago

LinusU commented 5 years ago

Added extra handling in DecoderStream.afterPacketout() to deal with recoverable errors in libogg's ogg_stream_packetout.

Now afterPacketout() will correctly retry when ogg_stream_packetout sets rtn = -1

This makes node-ogg more resilient to imperfect (but perfectly usable) ogg streams.

For more info: http://xiph.org/ogg/doc/libogg/ogg_stream_packetout.html

rebase of #6