Commit 35d9a6cc authored by premathasara's avatar premathasara
Browse files

Move variable creation to higher up in scope to fix issue with instrumentation

parent 1941f9b6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,6 +333,7 @@ void ivas_agc_enc_process(

            if ( isClipped )
            {
                int16_t isCompensated = FALSE;
                actualMaxAbsVal = pState->gain_state[i].lastMaxAbs * pState->gain_state[i].lastGain;
#ifndef AGC_TUNING_IMPROVEMENT
                if ( MaxAbsValIdx == 0 )
@@ -342,7 +343,6 @@ void ivas_agc_enc_process(
                else
                {
#endif
                    int16_t isCompensated = FALSE;
                    pState->gain_data[i].gainException = FALSE;
#ifdef AGC_TUNING_IMPROVEMENT
                    pState->gain_state[i].gainExpVal = (int16_t) ceilf( -logf( actualMaxAbsVal * MDFT_NORM_SCALING ) / logf( pState->agc_com.winFunc[min( offset - 1, MaxAbsValIdx )] ) );