Incorrect channel numbering in EVS-compatible downmix (PHA mode)
While reviewing the code of the EVS compatible downmix, it was found the indices of left and right channels are inverted in one case. Impact is limited to two lines of code (the value of pha_ipd_ild_chan2rephase needs to be swapped to 1 and 0 in lines 608 and 612 of ivas_stereo_dmx_evs.c).
/* Choose best channel to phase align */
/* Channel selection based on ILD */
if ( hPHA->trns_aux_energy[0] > hPHA->trns_aux_energy[1] * hPHA->pha_ipd_ild_thresh )
{
** pha_ipd_ild_chan2rephase = 0;**
}
else if ( hPHA->trns_aux_energy[1] > hPHA->trns_aux_energy[0] * hPHA->pha_ipd_ild_thresh )
{
** pha_ipd_ild_chan2rephase = 1;**
}
else
{
pha_ipd_ild_chan2rephase = -1;
}