mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
e42ade073c
If the audio thread called to readBuffer before any packet had been added to the stream, the state of the stream would be changed from INIT to EOS. Later, when a packet was received, the state would go directly from EOS to READY, skipping decoder init, leaving garbage memory in the decoder structs and causing a crash of the decoder. Fixes Trac#9653.