Commit 1d6c1fb6 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

simplify if() condition

parent b313feda
Loading
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -294,13 +294,9 @@ ivas_error pre_proc_front_ivas_fx(
    }

#ifdef DEBUG_MODE_INFO
    if ( !( hCPE != NULL && hCPE->hStereoTD != NULL && ch_idx > 0 ) )
    {
        int16_t is_td_stereo_second_channel;
        is_td_stereo_second_channel = hCPE != NULL && hCPE->hStereoTD != NULL && ch_idx > 0;

        /* for TD stereo only write out first channel. The existence of a second channel can vary, this is just easier to handle */
        if ( !is_td_stereo_second_channel )
        {
        int16_t tmpF[L_FRAME48k];
        for ( int16_t isample = 0; isample < input_frame; isample++ )
        {
@@ -308,7 +304,6 @@ ivas_error pre_proc_front_ivas_fx(
        }
        dbgwrite( &tmpF, sizeof( int16_t ), input_frame, 1, strcat( fname( debug_dir, "ivas_input_dmx", 0, ch_idx + 1, ENC ), ".pcm" ) );
    }
    }
#endif

#ifdef MSAN_FIX