openrw icon indicating copy to clipboard operation
openrw copied to clipboard

SoundSource.cpp: return AVERROR_EOF when buffer is empty

Open Lihis opened this issue 2 years ago • 0 comments

On latest master (0f83c16f6518c427a4f156497c3edc843610c402) when I click "start new game", nothing happens.

Debugged this a bit it seems the avformat_find_stream_info hangs in SoundSource.cpp. Looks like the read_packet function is called over and over again even the functions returns 0.

But if AVERROR_EOF is returned when the buffer is empty, it fixes the hanging for me. Is this related some API change or something else? Would need to figure it out..

Lihis avatar Dec 01 '23 14:12 Lihis