Commit 2c1b21fe authored by fotopoulou's avatar fotopoulou
Browse files

simplify if condition

parent e37624a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -731,7 +731,7 @@ void ShapeSpectrum(
#ifndef FIX_1283_STEREO_DFT_COLLAPSE
    if ( ( total_brate <= ACELP_13k20 && st->bwidth == SWB ) )
#else
    if ( ( total_brate <= ACELP_13k20 && st->bwidth == SWB ) || ( st->element_brate <= IVAS_16k4 && st->element_mode == IVAS_CPE_DFT && st->bwidth == SWB ) )
    if ( ( total_brate <= ACELP_13k20 || ( st->element_brate <= IVAS_16k4 && st->element_mode == IVAS_CPE_DFT ) ) && st->bwidth == SWB )
#endif
    {
        max_low_pre = 0.f;
@@ -780,7 +780,7 @@ void ShapeSpectrum(
#ifndef FIX_1283_STEREO_DFT_COLLAPSE
    if ( total_brate <= ACELP_13k20 && st->bwidth == SWB )
#else
    if ( ( total_brate <= ACELP_13k20 && st->bwidth == SWB ) || ( st->element_brate <= IVAS_16k4 && st->element_mode == IVAS_CPE_DFT && st->bwidth == SWB ) )
    if ( ( total_brate <= ACELP_13k20 || ( st->element_brate <= IVAS_16k4 && st->element_mode == IVAS_CPE_DFT ) ) && st->bwidth == SWB )
#endif
    {
        int16_t dist_low, dist_high;