Merge "Fix for NPD in case of single coupling channel element." into pi-dev

am: 3320901848

Change-Id: I062dfb955626b0bad1413cf7878c7fa5ce521fd1
This commit is contained in:
Ramesh Katuri 2018-09-06 12:18:33 -07:00 committed by android-build-merger
commit 9f984c3d53

View file

@ -2424,7 +2424,11 @@ IA_ERRORCODE ixheaacd_dec_execute(
(WORD8 *)p_state_enhaacplus_dec->aac_scratch_mem_v + (8 * 1024) +
pers_used;
}
actual_out_buffer = p_state_enhaacplus_dec->coup_ch_output;
if (p_obj_exhaacplus_dec->aac_config.element_type[1] < 3 &&
p_obj_exhaacplus_dec->aac_config.element_type[1] > 0 &&
p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) {
actual_out_buffer = p_state_enhaacplus_dec->coup_ch_output;
}
ch_fac = 1;
slot_ele = 0;
}