videolabs / libspatialaudio

Ambisonic encoding / decoding and binauralization library in C++
Other
192 stars 37 forks source link

adm: fix invalid index with m_hoaEncoders when using Binaural #30

Open tguillem opened 3 years ago

tguillem commented 3 years ago

GetMatchingIndex() was used by the binaural renderer to get the m_hoaEncoders vector index, and by the renderer to get the object map key.

This led to invalid index or segfault when using the binaural renderer. when Objects were inserted before DirectSpeakers in StreamInformation.