From f5ff78e19f99526449570268e41370abadf5f89b Mon Sep 17 00:00:00 2001 From: rtyag Date: Tue, 12 Jul 2022 15:48:49 +1000 Subject: [PATCH] fir for IVAS-047, Fix the error reporting when AGC is enabled --- lib_com/options.h | 2 ++ lib_enc/lib_enc.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 9b4fb901db..ce0e122c42 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -159,6 +159,8 @@ #define FIX_038_TV_FIX_DEC_CRASH_DURING_FEC /* IVAS-038 Fixed potential decoder crash on frame lost, due to loss of synchronisation between encoder and decoder */ +#define FIX_047_ERROR_ENABLING_AGC /* IVAS-047, Fix the error reporting when AGC is enabled*/ + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ #endif diff --git a/lib_enc/lib_enc.c b/lib_enc/lib_enc.c index 28a8c3004e..81f13d40d2 100644 --- a/lib_enc/lib_enc.c +++ b/lib_enc/lib_enc.c @@ -762,8 +762,12 @@ static ivas_error configureEncoder( /* IVAS_fmToDo: needs more work in case of bitrate switching */ hEncoderConfig->sba_order = 1; } +#ifndef FIX_047_ERROR_ENABLING_AGC #ifndef SBA_CLEANING st_ivas->sba_mode = ivas_sba_mode_select( hEncoderConfig->ivas_total_brate ); // VE: is it needed here? +#endif +#else + st_ivas->sba_mode = ivas_sba_mode_select( hEncoderConfig->ivas_total_brate ); #endif } else if ( hEncoderConfig->ivas_format == MASA_FORMAT ) -- GitLab