Commit 9157e765 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix msan error with ALLOW_HOA3_ROTATION

parent 652da752
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -80,6 +80,8 @@ void ivas_renderer_select(
    }

#ifdef ALLOW_HOA3_ROTATION
    if ( st_ivas->ivas_format == SBA_FORMAT || st_ivas->ivas_format == SBA_ISM_FORMAT )
    {
		nchan_internal = ivas_sba_get_nchan_metadata( st_ivas->sba_analysis_order, st_ivas->hDecoderConfig->ivas_total_brate );
		if ( output_config == IVAS_AUDIO_CONFIG_HOA3 && st_ivas->hDecoderConfig->Opt_Headrotation && nchan_internal >= 2 )
		{
@@ -89,6 +91,7 @@ void ivas_renderer_select(
			st_ivas->hCombinedOrientationData->shd_rot_max_order = 1;
#endif
		}
	}
#endif

    if ( output_config == IVAS_AUDIO_CONFIG_BINAURAL || output_config == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR || output_config == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB