Loading lib_com/ivas_ism_com.c +6 −2 Original line number Diff line number Diff line Loading @@ -602,7 +602,11 @@ void ivas_ism_metadata_close( { int16_t n; #ifdef FIX_852_FIX_HANDLE_DEREF if ( hIsmMetaData == NULL || *hIsmMetaData == NULL ) #else if ( hIsmMetaData == NULL || hIsmMetaData == NULL ) #endif { return; } Loading lib_com/ivas_prot.h +28 −2 Original line number Diff line number Diff line Loading @@ -430,6 +430,26 @@ ivas_error ivas_core_enc( CPE_ENC_HANDLE hCPE, /* i/o: CPE encoder structure */ MCT_ENC_HANDLE hMCT, /* i/o: MCT encoder structure */ const int16_t n_CoreChannels, /* i : number of core channels to be coded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float old_inp_12k8[][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[][L_INP], /* i : buffer of old input signal */ float ener[], /* i : residual energy from Levinson-Durbin */ float A[][NB_SUBFR16k * ( M + 1 )], /* i : A(z) unquantized for the 4 subframes */ float Aw[][NB_SUBFR16k * ( M + 1 )], /* i : weighted A(z) unquantized for subframes */ float epsP[][M + 1], /* i : LP prediction errors */ float lsp_new[][M], /* i : LSPs at the end of the frame */ float lsp_mid[][M], /* i : LSPs in the middle of the frame */ const int16_t vad_hover_flag[], /* i : VAD hanglover flag */ int16_t attack_flag[], /* i : attack flag (GSC or TC) */ float realBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: real buffer */ float imagBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: imag buffer */ float old_wsp[][L_WSP], /* i : weighted input signal buffer */ const int16_t loc_harm[], /* i : harmonicity flag */ const float cor_map_sum[], /* i : speech/music clasif. parameter */ const int16_t vad_flag_dtx[], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[][2 * L_FFT], /* i : FFT buffer */ #else float old_inp_12k8[CPE_CHANNELS][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[CPE_CHANNELS][L_INP], /* i : buffer of old input signal */ float ener[CPE_CHANNELS], /* i : residual energy from Levinson-Durbin */ Loading @@ -448,6 +468,7 @@ ivas_error ivas_core_enc( const int16_t vad_flag_dtx[CPE_CHANNELS], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[CPE_CHANNELS][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[CPE_CHANNELS][2 * L_FFT], /* i : FFT buffer */ #endif const int16_t tdm_SM_flag, /* i : channel combination scheme flag */ const int16_t ivas_format, /* i : IVAS format */ const int16_t flag_16k_smc /* i : flag to indicate if the OL SMC is run at 16 kHz */ Loading @@ -459,8 +480,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float outputHB[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[CPE_CHANNELS], /* o : output synthesis signal */ float outputHB[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ); Loading lib_com/options.h +7 −0 Original line number Diff line number Diff line Loading @@ -150,8 +150,15 @@ /*#define FIX_I4_OL_PITCH*/ /* fix open-loop pitch used for EVS core switching */ /*#define SPLIT_REND_WITH_HEAD_ROT*/ /* Dlb,FhG: Split Rendering contributions 21 and 35 */ #define FIX_817_DOUBLE_PREC_REND_MD /* Eri: Issue 817: Avoid double precision in renderer metadata module */ #define FIX_854_ARRAY_SIZE_MISMATCH /* VA: issue 854: correct the mismatch between definition and declaration of `ivas_core_dec() */ #define FIX_785_REMOVE_DEAD_CODE /* VA: issue 785: remove dead code */ #define FIX_852_FIX_HANDLE_DEREF /* VA: issue 852: Fix missing handle dereferencing of hIsmMetadaData in ivas_ism_metadata_close() */ #define FIX_520_REMOVE_MEMMOVE_JBM /* VA: issue 520: Remove memmove() from JBM code */ #define FIX_853_ARRAY_SIZE_MISMATCH /* Nokia: Issue #853: Mismatch of declaration and definition of computeIntensityVector_ana and computeReferencePower_ana */ /* #################### End BE switches ################################## */ Loading lib_dec/ivas_binRenderer_internal.c +4 −0 Original line number Diff line number Diff line Loading @@ -872,8 +872,12 @@ static void ivas_binaural_obtain_DMX( { int16_t chIdx, bandIdx, k; #ifdef FIX_785_REMOVE_DEAD_CODE if ( hBinRenderer->ivas_format == MC_FORMAT ) #else // ToDo: hBinRenderer->ivas_format is never set to ISM_FORMAT if ( hBinRenderer->ivas_format == MC_FORMAT || hBinRenderer->ivas_format == ISM_FORMAT ) #endif { /* Obtain the downmix */ float P_in[CLDFB_NO_CHANNELS_MAX]; Loading lib_dec/ivas_core_dec.c +12 −7 Original line number Diff line number Diff line Loading @@ -60,8 +60,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float hb_synth[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[L_FRAME48k], /* o : output synthesis signal */ float hb_synth[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ) Loading Loading
lib_com/ivas_ism_com.c +6 −2 Original line number Diff line number Diff line Loading @@ -602,7 +602,11 @@ void ivas_ism_metadata_close( { int16_t n; #ifdef FIX_852_FIX_HANDLE_DEREF if ( hIsmMetaData == NULL || *hIsmMetaData == NULL ) #else if ( hIsmMetaData == NULL || hIsmMetaData == NULL ) #endif { return; } Loading
lib_com/ivas_prot.h +28 −2 Original line number Diff line number Diff line Loading @@ -430,6 +430,26 @@ ivas_error ivas_core_enc( CPE_ENC_HANDLE hCPE, /* i/o: CPE encoder structure */ MCT_ENC_HANDLE hMCT, /* i/o: MCT encoder structure */ const int16_t n_CoreChannels, /* i : number of core channels to be coded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float old_inp_12k8[][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[][L_INP], /* i : buffer of old input signal */ float ener[], /* i : residual energy from Levinson-Durbin */ float A[][NB_SUBFR16k * ( M + 1 )], /* i : A(z) unquantized for the 4 subframes */ float Aw[][NB_SUBFR16k * ( M + 1 )], /* i : weighted A(z) unquantized for subframes */ float epsP[][M + 1], /* i : LP prediction errors */ float lsp_new[][M], /* i : LSPs at the end of the frame */ float lsp_mid[][M], /* i : LSPs in the middle of the frame */ const int16_t vad_hover_flag[], /* i : VAD hanglover flag */ int16_t attack_flag[], /* i : attack flag (GSC or TC) */ float realBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: real buffer */ float imagBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: imag buffer */ float old_wsp[][L_WSP], /* i : weighted input signal buffer */ const int16_t loc_harm[], /* i : harmonicity flag */ const float cor_map_sum[], /* i : speech/music clasif. parameter */ const int16_t vad_flag_dtx[], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[][2 * L_FFT], /* i : FFT buffer */ #else float old_inp_12k8[CPE_CHANNELS][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[CPE_CHANNELS][L_INP], /* i : buffer of old input signal */ float ener[CPE_CHANNELS], /* i : residual energy from Levinson-Durbin */ Loading @@ -448,6 +468,7 @@ ivas_error ivas_core_enc( const int16_t vad_flag_dtx[CPE_CHANNELS], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[CPE_CHANNELS][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[CPE_CHANNELS][2 * L_FFT], /* i : FFT buffer */ #endif const int16_t tdm_SM_flag, /* i : channel combination scheme flag */ const int16_t ivas_format, /* i : IVAS format */ const int16_t flag_16k_smc /* i : flag to indicate if the OL SMC is run at 16 kHz */ Loading @@ -459,8 +480,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float outputHB[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[CPE_CHANNELS], /* o : output synthesis signal */ float outputHB[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ); Loading
lib_com/options.h +7 −0 Original line number Diff line number Diff line Loading @@ -150,8 +150,15 @@ /*#define FIX_I4_OL_PITCH*/ /* fix open-loop pitch used for EVS core switching */ /*#define SPLIT_REND_WITH_HEAD_ROT*/ /* Dlb,FhG: Split Rendering contributions 21 and 35 */ #define FIX_817_DOUBLE_PREC_REND_MD /* Eri: Issue 817: Avoid double precision in renderer metadata module */ #define FIX_854_ARRAY_SIZE_MISMATCH /* VA: issue 854: correct the mismatch between definition and declaration of `ivas_core_dec() */ #define FIX_785_REMOVE_DEAD_CODE /* VA: issue 785: remove dead code */ #define FIX_852_FIX_HANDLE_DEREF /* VA: issue 852: Fix missing handle dereferencing of hIsmMetadaData in ivas_ism_metadata_close() */ #define FIX_520_REMOVE_MEMMOVE_JBM /* VA: issue 520: Remove memmove() from JBM code */ #define FIX_853_ARRAY_SIZE_MISMATCH /* Nokia: Issue #853: Mismatch of declaration and definition of computeIntensityVector_ana and computeReferencePower_ana */ /* #################### End BE switches ################################## */ Loading
lib_dec/ivas_binRenderer_internal.c +4 −0 Original line number Diff line number Diff line Loading @@ -872,8 +872,12 @@ static void ivas_binaural_obtain_DMX( { int16_t chIdx, bandIdx, k; #ifdef FIX_785_REMOVE_DEAD_CODE if ( hBinRenderer->ivas_format == MC_FORMAT ) #else // ToDo: hBinRenderer->ivas_format is never set to ISM_FORMAT if ( hBinRenderer->ivas_format == MC_FORMAT || hBinRenderer->ivas_format == ISM_FORMAT ) #endif { /* Obtain the downmix */ float P_in[CLDFB_NO_CHANNELS_MAX]; Loading
lib_dec/ivas_core_dec.c +12 −7 Original line number Diff line number Diff line Loading @@ -60,8 +60,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float hb_synth[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[L_FRAME48k], /* o : output synthesis signal */ float hb_synth[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ) Loading