Commit c4b90a51 authored by multrus's avatar multrus
Browse files

replace ternary operator by if()-statement

parent 61180a98
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -232,8 +232,13 @@ ivas_error ivas_mct_dec_fx(
            {
                Word16 nSubframes;

                nSubframes = EQ_16( hCPE->hCoreCoder[n]->core, TCX_10_CORE ) ? NB_DIV : 1; /* Q0 */
                nSubframes = 1; /* Q0 */
                move16();
                if ( EQ_16( hCPE->hCoreCoder[n]->core, TCX_10_CORE ) )
                {
                    nSubframes = NB_DIV;
                    move16;
                }

                Copy_Scale_sig_16_32_DEPREC( Aq_fx[cpe_id][n], Aq_fx_32[n], i_mult( nSubframes, M ), Q16 - Q12 ); // Q16
            }
+11 −0
Original line number Diff line number Diff line
@@ -298,8 +298,19 @@ void stereo_mdct_core_dec_fx(

    FOR( ch = 0; ch < nChannels; ch++ )
    {
#ifdef FIX_2382_COPY_AQ_IN_MCT
        nSubframes[ch] = 1; /* Q0 */
        move16();

        if ( EQ_16( sts[ch]->core, TCX_10_CORE ) )
        {
            nSubframes[ch] = NB_DIV;
            move16();
        }
#else
        nSubframes[ch] = EQ_16( sts[ch]->core, TCX_10_CORE ) ? NB_DIV : 1; /* Q0 */
        move16();
#endif

        FOR( k = 0; k < nSubframes[ch]; k++ )
        {