From 83a63d925cfc8a4c15e2321740580238f1249c01 Mon Sep 17 00:00:00 2001 From: Anjaneyulu Sana Date: Mon, 14 Apr 2025 22:38:47 +0530 Subject: [PATCH] Fix for 3GPP issue 1455: ParamMC Encoder: Missing energy for BASOP in 10kHz region --- lib_enc/ivas_mc_param_enc_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_enc/ivas_mc_param_enc_fx.c b/lib_enc/ivas_mc_param_enc_fx.c index d0316be0f..22eacdb32 100644 --- a/lib_enc/ivas_mc_param_enc_fx.c +++ b/lib_enc/ivas_mc_param_enc_fx.c @@ -2222,7 +2222,7 @@ static void ivas_param_mc_dec2bin_fx( /* convert value to bitstream, MSB first */ FOR( idx = 0; idx < N; idx++ ) { - bits[idx] = (UWord16) s_and( shr( val, sub( N, sub( 1, idx ) ) ), 1 ); + bits[idx] = (UWord16) s_and( shr( val, sub( sub( N, 1 ), idx ) ), 1 ); move16(); } -- GitLab