Commit 2cc706a8 authored by malenov's avatar malenov
Browse files

fixing compilation warnings

parent c07a4a3a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -165,6 +165,10 @@ int main(
#ifdef DEBUGGING
    dbgargs( &argc, argv );
#endif
#ifdef WMOPS
    reset_wmops();
    reset_mem( USE_32BITS );
#endif

    /*------------------------------------------------------------------------------------------*
     * Parse command-line arguments
@@ -446,7 +450,7 @@ int main(

#ifdef WMOPS
    reset_wmops();
    reset_mem( USE_32BITS );
    reset_stack();
#endif

    /*-----------------------------------------------------------------*
+5 −1
Original line number Diff line number Diff line
@@ -184,6 +184,10 @@ int main(
#ifdef DEBUGGING
    dbgargs( &argc, argv );
#endif
#ifdef WMOPS
    reset_wmops();
    reset_mem( USE_32BITS );
#endif

    initArgStruct( &arg );

@@ -548,7 +552,7 @@ int main(

#ifdef WMOPS
    reset_wmops();
    reset_mem( USE_32BITS );
    reset_stack();
#endif

    /*------------------------------------------------------------------------------------------*
+2 −1
Original line number Diff line number Diff line
@@ -691,6 +691,8 @@ void srt_vec_ind_f(
    return;
}

#define WMC_TOOL_SKIP

/*-------------------------------------------------------------------*
 *  UMult_32_32()
 *
@@ -814,7 +816,6 @@ Word16 atan2_fx(
    Word16 man, expo, reciprocal;
    Word16 angle, w, z;

#define WMC_TOOL_SKIP
    IF( L_sub( x, 0 ) == 0 )
    {
        return 25736; /* EVS_PI/2 in Q14 */
+4 −1
Original line number Diff line number Diff line
@@ -856,8 +856,11 @@ static void ivas_dirac_dec_binaural_formulate_input_and_target_covariance_matric
            {
                if ( !h->renderStereoOutputInsteadOfBinaural )
                {
                    int16_t idx;

                    /* Apply target spectrum that emphasizes low frequencies when the sound is surround coherent */
                    diffEne *= ( 1.0f - surCoh ) + surCoh * surCohEne[min( bin, MASA_NUM_DEFINED_SUR_SPR_COH_ENE_BINS - 1 )];
                    idx = min( bin, MASA_NUM_DEFINED_SUR_SPR_COH_ENE_BINS - 1 );
                    diffEne *= ( 1.0f - surCoh ) + surCoh * surCohEne[idx];
                }
            }
            h->ChEneOut[0][bin] += diffEne; /* Diff ene part*/
+4 −1
Original line number Diff line number Diff line
@@ -3132,8 +3132,11 @@ int16_t read_surround_coherence(

        if ( hQMetaData->no_directions == 2 )
        {
            int16_t idx;

            d += hQMetaData->twoDirBands[j];
            error_ratio_surr = 1.0f - q_direction[0].band_data[j].energy_ratio[0] - q_direction[1].band_data[max( d - 1, 0 )].energy_ratio[0] * hQMetaData->twoDirBands[j];
            idx = max( d - 1, 0 );
            error_ratio_surr = 1.0f - q_direction[0].band_data[j].energy_ratio[0] - q_direction[1].band_data[idx].energy_ratio[0] * hQMetaData->twoDirBands[j];
        }
        else
        {
Loading