Commit a26ed9fc authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch 'main' into...

Merge branch 'main' into basop-2298-port-float-mr-2468-swb-tbe-fix-constant-in-create_random_vector-to-allow-more-reliable
parents f5562cef 507fd13e
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@
#define REMOVE_UNUSED_CODE_IVAS_DEC                     /* VA: remove unused code in ivas_jbm_dec_tc_fx() */
#define REMOVE_CAM_FROM_IVAS                            /* VA: basop issue 210: remove obsoelte CAM code from IVAS */
#define FIX_2344_ALIGN_PREPROC                          /* VA: basop issue 2344: Align pre_proc_ivas() between FLP and BASOP */
#define FIX_FLOAT_1501_UNIT_VALUE_IN_OMASA              /* Nokia: Fix float issue 1501, uninitialized value in ivas_masa_combine_directions for OMASA */

/* #################### End BE switches ################################## */

+18 −11
Original line number Diff line number Diff line
@@ -1232,6 +1232,10 @@ void ivas_masa_combine_directions(
        }
    }

#ifdef FIX_FLOAT_1501_UNIT_VALUE_IN_OMASA
    if ( hMasa->config.numTwoDirBands > 0 )
    {
#endif
        /* Estimate the importance of having two directions instead of one */
        for ( i = 0; i < numCodingBands; i++ )
        {
@@ -1247,7 +1251,10 @@ void ivas_masa_combine_directions(

        /* Determine bands where to use two directions */
        find_n_largest( importance, indicesOfLargest, numCodingBands, hMasa->config.numTwoDirBands );
#ifdef FIX_FLOAT_1501_UNIT_VALUE_IN_OMASA
    }

#endif
    for ( i = 0; i < numCodingBands; i++ )
    {
        hMasa->data.twoDirBands[i] = 0;