Michael Wörner 7ca66462ac
Fixed an issue that could cause a crash when encountering a zero-length packet in an OGG stream.
A zero-length memcpy into a null pointer itself does not fail, but for gcc with optimizations, this can cause incorrect code to be generated further down the line since the pointer is then assumed to be non-null.
Now stripping zero-length packets and pages without packets from the OggPacketSequence during import. This prevents various warning and error messages for files that end on a zero-length packet.

(cherry picked from commit a4db4ae6581a6e4f051d8aea2c562c1165d22590)
2024-02-27 15:45:39 +01:00
..
2021-09-09 19:39:04 -07:00