aboutsummaryrefslogtreecommitdiff
path: root/encoder/ixheaace_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'encoder/ixheaace_api.c')
-rw-r--r--encoder/ixheaace_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/encoder/ixheaace_api.c b/encoder/ixheaace_api.c
index 4bc7ddd..fee5c9e 100644
--- a/encoder/ixheaace_api.c
+++ b/encoder/ixheaace_api.c
@@ -3601,6 +3601,9 @@ IA_ERRORCODE ixheaace_process(pVOID pstr_obj_ixheaace, pVOID pv_input, pVOID pv_
if (!pstr_api_struct->usac_en) {
for (ele_idx = 0; ele_idx < pstr_api_struct->config[0].num_bs_elements; ele_idx++) {
error = ia_enhaacplus_enc_execute(pstr_api_struct, ele_idx);
+ if (error != IA_NO_ERROR) {
+ return error;
+ }
}
if ((error == IA_NO_ERROR) && (pstr_api_struct->pstr_state->is_quant_spec_zero)) {
error = IA_EXHEAACE_EXE_NONFATAL_QUANTIZATION_SPECTRUM_ZERO;