From dfd8057009a818fbc636b5d09ba07caff862cf8c Mon Sep 17 00:00:00 2001 From: vaclav Date: Mon, 28 Nov 2022 08:24:51 +0000 Subject: [PATCH] Update dtx.c: fix use-of-uninitialized-value-error within FIX_DTX_RANGE --- lib_enc/dtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_enc/dtx.c b/lib_enc/dtx.c index d8da85429f..1e80dfaf06 100644 --- a/lib_enc/dtx.c +++ b/lib_enc/dtx.c @@ -255,7 +255,7 @@ void dtx( else { #ifdef FIX_DTX_RANGE - if ( ( st->cng_type == FD_CNG && ( st->total_brate <= MAX_BRATE_DTX_EVS || ( st->element_mode == IVAS_SCE && st->element_brate <= MAX_BRATE_DTX_IVAS ) ) ) || ( st->element_mode == IVAS_CPE_MDCT ) ) /* at highest bitrates, use exclusively LP_CNG */ + if ( ( st->cng_type == FD_CNG && ( st->total_brate <= MAX_BRATE_DTX_EVS || ( st->element_mode == IVAS_SCE && ivas_total_brate <= MAX_BRATE_DTX_IVAS ) ) ) || ( st->element_mode == IVAS_CPE_MDCT ) ) /* at highest bitrates, use exclusively LP_CNG */ #else if ( ( st->cng_type == FD_CNG && ( st->total_brate <= ACELP_24k40 || ( st->element_mode == IVAS_SCE && st->total_brate <= ACELP_32k ) ) ) || ( st->element_mode == IVAS_CPE_MDCT ) ) /* at highest bitrates, use exclusively LP_CNG */ #endif -- GitLab