Fix for segmentation fault in ixheaacd_dec_envelope

Bug: 110617740
Test: rerun poc
Change-Id: I4ca17f0c3e350c8020d2eecfb1519980c7cdff6f
This commit is contained in:
Ramesh Katuri 2018-06-22 12:32:11 +05:30 committed by Ray Essick
parent 8cacf1f5bc
commit ed84995ea7

View file

@ -308,7 +308,7 @@ WORD32 ixheaacd_usac_process(ia_dec_data_struct *pstr_dec_data,
case ID_USAC_CPE:
nr_core_coder_channels = (stereo_config_index == 1) ? 1 : 2;
if ((stereo_config_index > 1) &&
if (((stereo_config_index > 1) || (stereo_config_index == 0)) &&
(p_state_aac_dec->num_of_output_ch < 2))
return -1;
goto core_data_extracting;