Loading lib_com/options.h +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ #define FIX_FIX_I59 /* Issue 59: small fix concerning LFE delay rounding */ #define MC_BITRATE_SWITCHING /* Issue 116: support bitrate switching in MC format */ #define MC_JBM /* FhG: extend JBM beyond mono for running IVAS in VoIP mode (contribution 19) */ #define FIX_265_MC_BRATE_SWITCHING /* Issue 265: fix use-of-uninitialized-value in MC bitrate switching */ /* ################## End DEVELOPMENT switches ######################### */ Loading lib_dec/ivas_corecoder_dec_reconfig.c +6 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,12 @@ ivas_error ivas_corecoder_dec_reconfig( for ( ; cpe_id < st_ivas->nCPE; cpe_id++ ) { #ifdef MC_BITRATE_SWITCHING #ifdef FIX_265_MC_BRATE_SWITCHING if ( st_ivas->mc_mode == MC_MODE_MCMASA && st_ivas->hOutSetup.separateChannelEnabled ) { st_ivas->element_mode_init = IVAS_CPE_MDCT; } #endif if ( ( error = create_cpe_dec( st_ivas, cpe_id, brate_CPE ) ) != IVAS_ERR_OK ) #else if ( ( error = create_cpe_dec( st_ivas, cpe_id, ( ivas_total_brate / st_ivas->nchan_transport ) * CPE_CHANNELS ) ) != IVAS_ERR_OK ) Loading lib_dec/ivas_stereo_switching_dec.c +8 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ #include "prot.h" #include "ivas_prot.h" #include "ivas_rom_com.h" #ifdef FIX_265_MC_BRATE_SWITCHING #include "assert.h" #endif #include "wmc_auto.h" #include <math.h> Loading Loading @@ -354,6 +357,11 @@ ivas_error stereo_memory_dec( error = IVAS_ERR_OK; #ifdef FIX_265_MC_BRATE_SWITCHING assert( hCPE->last_element_mode >= IVAS_CPE_DFT && "Switching from SCE to CPE is not a valid configuration!" ); #endif hCPE->hCoreCoder[0]->element_mode = hCPE->element_mode; hCPE->hCoreCoder[1]->element_mode = hCPE->element_mode; Loading lib_enc/ivas_stereo_switching_enc.c +10 −4 Original line number Diff line number Diff line Loading @@ -32,16 +32,18 @@ #include <stdint.h> #include "options.h" #ifdef DEBUGGING #include "debug.h" #endif #include "cnst.h" #include "rom_com.h" #include "prot.h" #include "ivas_prot.h" #include "ivas_rom_com.h" #ifdef FIX_265_MC_BRATE_SWITCHING #include "assert.h" #endif #include "wmc_auto.h" #ifdef DEBUGGING #include "debug.h" #endif /*-------------------------------------------------------------------* * Function allocate_CoreCoder_enc() Loading Loading @@ -231,6 +233,10 @@ ivas_error stereo_memory_enc( error = IVAS_ERR_OK; #ifdef FIX_265_MC_BRATE_SWITCHING assert( hCPE->last_element_mode >= IVAS_CPE_DFT && "Switching from SCE to CPE is not a valid configuration!" ); #endif /*--------------------------------------------------------------* * save parameters from structures that will be freed *---------------------------------------------------------------*/ Loading Loading
lib_com/options.h +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ #define FIX_FIX_I59 /* Issue 59: small fix concerning LFE delay rounding */ #define MC_BITRATE_SWITCHING /* Issue 116: support bitrate switching in MC format */ #define MC_JBM /* FhG: extend JBM beyond mono for running IVAS in VoIP mode (contribution 19) */ #define FIX_265_MC_BRATE_SWITCHING /* Issue 265: fix use-of-uninitialized-value in MC bitrate switching */ /* ################## End DEVELOPMENT switches ######################### */ Loading
lib_dec/ivas_corecoder_dec_reconfig.c +6 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,12 @@ ivas_error ivas_corecoder_dec_reconfig( for ( ; cpe_id < st_ivas->nCPE; cpe_id++ ) { #ifdef MC_BITRATE_SWITCHING #ifdef FIX_265_MC_BRATE_SWITCHING if ( st_ivas->mc_mode == MC_MODE_MCMASA && st_ivas->hOutSetup.separateChannelEnabled ) { st_ivas->element_mode_init = IVAS_CPE_MDCT; } #endif if ( ( error = create_cpe_dec( st_ivas, cpe_id, brate_CPE ) ) != IVAS_ERR_OK ) #else if ( ( error = create_cpe_dec( st_ivas, cpe_id, ( ivas_total_brate / st_ivas->nchan_transport ) * CPE_CHANNELS ) ) != IVAS_ERR_OK ) Loading
lib_dec/ivas_stereo_switching_dec.c +8 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ #include "prot.h" #include "ivas_prot.h" #include "ivas_rom_com.h" #ifdef FIX_265_MC_BRATE_SWITCHING #include "assert.h" #endif #include "wmc_auto.h" #include <math.h> Loading Loading @@ -354,6 +357,11 @@ ivas_error stereo_memory_dec( error = IVAS_ERR_OK; #ifdef FIX_265_MC_BRATE_SWITCHING assert( hCPE->last_element_mode >= IVAS_CPE_DFT && "Switching from SCE to CPE is not a valid configuration!" ); #endif hCPE->hCoreCoder[0]->element_mode = hCPE->element_mode; hCPE->hCoreCoder[1]->element_mode = hCPE->element_mode; Loading
lib_enc/ivas_stereo_switching_enc.c +10 −4 Original line number Diff line number Diff line Loading @@ -32,16 +32,18 @@ #include <stdint.h> #include "options.h" #ifdef DEBUGGING #include "debug.h" #endif #include "cnst.h" #include "rom_com.h" #include "prot.h" #include "ivas_prot.h" #include "ivas_rom_com.h" #ifdef FIX_265_MC_BRATE_SWITCHING #include "assert.h" #endif #include "wmc_auto.h" #ifdef DEBUGGING #include "debug.h" #endif /*-------------------------------------------------------------------* * Function allocate_CoreCoder_enc() Loading Loading @@ -231,6 +233,10 @@ ivas_error stereo_memory_enc( error = IVAS_ERR_OK; #ifdef FIX_265_MC_BRATE_SWITCHING assert( hCPE->last_element_mode >= IVAS_CPE_DFT && "Switching from SCE to CPE is not a valid configuration!" ); #endif /*--------------------------------------------------------------* * save parameters from structures that will be freed *---------------------------------------------------------------*/ Loading