Commit 3f12cd0f authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] don't call EFAP with uninit handle in ALLRAD

parent 5863e036
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -137,6 +137,10 @@ ivas_error ivas_sba_get_hoa_dec_matrix(
    else if ( hOutSetup.is_loudspeaker_setup )
    {
        /* init EFIP */
#ifdef FIX_1574_EFAP_CODE_LINT
        /* ensure the handle is NULL before passing, otherwise efap_init_data will think this is allocated memory and return an error */
        hEFAP = NULL;
#endif
        if ( ( error = efap_init_data( &( hEFAP ), hOutSetup.ls_azimuth, hOutSetup.ls_elevation, num_spk, EFAP_MODE_EFIP ) ) != IVAS_ERR_OK )
        {
            return error;