From 36a462ba3d7f97a7ecf9d2eb4d6610486a7d2d5e Mon Sep 17 00:00:00 2001 From: Srikanth Korse Date: Tue, 18 Oct 2022 14:29:56 +0200 Subject: [PATCH] [Fix] Fix for issue 155. Changes BE for ParamISM modes --- lib_com/options.h | 1 + lib_enc/ivas_init_enc.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index ff4cf5f346..5906991cdf 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -151,6 +151,7 @@ #define CORECODER_BITRATE_SWITCHING /* Issue 133: support bitrate switching in core-coder */ #define ISM_BITRATE_SWITCHING /* Issue 115: Support for Bitrate Switching in ISM */ #define SBA_SPAR_HARM /* Issue 92: maintenance of the SBA SPAR functions */ +#define FIX_155_HP20_ISSUE /* Issue 155: apply hp20 on all input channels instead of just 2 channels */ diff --git a/lib_enc/ivas_init_enc.c b/lib_enc/ivas_init_enc.c index e4db2ce2a1..8d79594c7e 100644 --- a/lib_enc/ivas_init_enc.c +++ b/lib_enc/ivas_init_enc.c @@ -190,6 +190,12 @@ int16_t getNumChanAnalysis( { n = st_ivas->hEncoderConfig->nchan_inp; } +#ifdef FIX_155_HP20_ISSUE + else if ( st_ivas->hEncoderConfig->ivas_format == ISM_FORMAT && st_ivas->ism_mode == ISM_MODE_PARAM ) + { + n = st_ivas->hEncoderConfig->nchan_inp; + } +#endif return n; } -- GitLab