aboutsummaryrefslogtreecommitdiff
path: root/encoder/iusace_enc_main.c
diff options
context:
space:
mode:
authorakshayragir833 <110660198+akshayragir833@users.noreply.github.com>2024-03-29 17:36:14 +0530
committerGitHub <noreply@github.com>2024-03-29 17:36:14 +0530
commitda04d9de787f78b6d5e3cba9970d50b3a9d17085 (patch)
tree949ccaf39034644fcc9d774572a550636722984e /encoder/iusace_enc_main.c
parentd880b2f9eef8d151275d8666885c44cd78c9734d (diff)
downloadlibxaac-da04d9de787f78b6d5e3cba9970d50b3a9d17085.tar.gz
Encoder enhancements (#84)
Tests done: smoke test
Diffstat (limited to 'encoder/iusace_enc_main.c')
-rw-r--r--encoder/iusace_enc_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/encoder/iusace_enc_main.c b/encoder/iusace_enc_main.c
index e1b95e0..a4dcd19 100644
--- a/encoder/iusace_enc_main.c
+++ b/encoder/iusace_enc_main.c
@@ -635,12 +635,13 @@ IA_ERRORCODE iusace_enc_init(ia_usac_encoder_config_struct *ptr_usac_config,
err_code = impd_drc_enc_init(&usac_data->str_drc_state, pstr_state->str_scratch.drc_scratch,
&ptr_usac_config->str_drc_cfg);
- if (err_code == IA_EXHEAACE_EXE_NONFATAL_USAC_INVALID_GAIN_POINTS) {
- ptr_usac_config->use_drc_element = 0;
- }
if (err_code & IA_FATAL_ERROR) {
return err_code;
}
+ if (err_code) {
+ ptr_usac_config->use_drc_element = 0;
+ err_code = IA_NO_ERROR;
+ }
if (ptr_usac_config->use_drc_element) {
ia_usac_enc_element_config_struct *pstr_usac_elem_config =