Commit 440e8dd5 authored by malenov's avatar malenov
Browse files

avoid warning command within array index

parent bc5a0f85
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -360,8 +360,7 @@ void ivas_agc_enc_process(
#ifndef CLEANUP_185_NO_AGC_EXCEPTION
                pState->gain_data[i].gainException = FALSE;
#endif
                idx = min( offset - 1, MaxAbsValIdx );
                pState->gain_state[i].gainExpVal = (int16_t) ceilf( -logf( actualMaxAbsVal * MDFT_NORM_SCALING ) / logf( pState->agc_com.winFunc[idx] ) );
                pState->gain_state[i].gainExpVal = (int16_t) ceilf( -logf( actualMaxAbsVal * MDFT_NORM_SCALING ) / logf( pState->agc_com.winFunc[min( offset - 1, MaxAbsValIdx )] ) );

                while ( !isCompensated )
                {