Loading lib_dec/ivas_cpe_dec.c +2 −3 Original line number Diff line number Diff line Loading @@ -108,7 +108,6 @@ ivas_error ivas_cpe_dec( return error; } /*------------------------------------------------------------------* * Initialization *-----------------------------------------------------------------*/ Loading Loading @@ -399,7 +398,6 @@ ivas_error ivas_cpe_dec( return error; } /* DFT Stereo residual decoding */ if ( hCPE->hStereoDft->res_cod_band_max > 0 && !st_ivas->bfi ) { Loading Loading @@ -583,7 +581,6 @@ ivas_error create_cpe_dec( hCPE->hStereoMdct = NULL; hCPE->hStereoTCA = NULL; hCPE->hStereoICBWE = NULL; hCPE->hStereoCng = NULL; hCPE->stereo_switching_counter = 10; Loading Loading @@ -789,6 +786,7 @@ ivas_error create_cpe_dec( { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for Stereo MDCT\n" ) ); } if ( st_ivas->ivas_format == STEREO_FORMAT && hCPE->element_brate <= MAX_MDCT_ITD_BRATE ) { hCPE->hStereoMdct->use_itd = 1; Loading @@ -797,6 +795,7 @@ ivas_error create_cpe_dec( { hCPE->hStereoMdct->use_itd = 0; } hCPE->hStereoMdct->reverse_dmx = 0; hCPE->hStereoMdct->smooth_ratio = 1.f; set_s( hCPE->hStereoMdct->prev_ms_mask[0], 0, MAX_SFB ); Loading lib_dec/ivas_stereo_switching_dec.c +13 −0 Original line number Diff line number Diff line Loading @@ -893,6 +893,12 @@ ivas_error stereo_memory_dec( } #ifdef FIX_79_MASA2TC_BITRATE_SWITCHING if ( hCPE->hStereoTCA != NULL ) { count_free( hCPE->hStereoTCA ); hCPE->hStereoTCA = NULL; } if ( hCPE->hStereoICBWE != NULL ) { count_free( hCPE->hStereoICBWE ); Loading Loading @@ -938,6 +944,13 @@ ivas_error stereo_memory_dec( stereo_tca_init_dec( hCPE->hStereoTCA ); } if ( hCPE->hStereoTCA != NULL && hCPE->element_mode == IVAS_CPE_MDCT ) { /* note: in MASA, hCPE->hStereoMdct->itd = 0 */ count_free( hCPE->hStereoTCA ); hCPE->hStereoTCA = NULL; } #endif } } Loading Loading
lib_dec/ivas_cpe_dec.c +2 −3 Original line number Diff line number Diff line Loading @@ -108,7 +108,6 @@ ivas_error ivas_cpe_dec( return error; } /*------------------------------------------------------------------* * Initialization *-----------------------------------------------------------------*/ Loading Loading @@ -399,7 +398,6 @@ ivas_error ivas_cpe_dec( return error; } /* DFT Stereo residual decoding */ if ( hCPE->hStereoDft->res_cod_band_max > 0 && !st_ivas->bfi ) { Loading Loading @@ -583,7 +581,6 @@ ivas_error create_cpe_dec( hCPE->hStereoMdct = NULL; hCPE->hStereoTCA = NULL; hCPE->hStereoICBWE = NULL; hCPE->hStereoCng = NULL; hCPE->stereo_switching_counter = 10; Loading Loading @@ -789,6 +786,7 @@ ivas_error create_cpe_dec( { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for Stereo MDCT\n" ) ); } if ( st_ivas->ivas_format == STEREO_FORMAT && hCPE->element_brate <= MAX_MDCT_ITD_BRATE ) { hCPE->hStereoMdct->use_itd = 1; Loading @@ -797,6 +795,7 @@ ivas_error create_cpe_dec( { hCPE->hStereoMdct->use_itd = 0; } hCPE->hStereoMdct->reverse_dmx = 0; hCPE->hStereoMdct->smooth_ratio = 1.f; set_s( hCPE->hStereoMdct->prev_ms_mask[0], 0, MAX_SFB ); Loading
lib_dec/ivas_stereo_switching_dec.c +13 −0 Original line number Diff line number Diff line Loading @@ -893,6 +893,12 @@ ivas_error stereo_memory_dec( } #ifdef FIX_79_MASA2TC_BITRATE_SWITCHING if ( hCPE->hStereoTCA != NULL ) { count_free( hCPE->hStereoTCA ); hCPE->hStereoTCA = NULL; } if ( hCPE->hStereoICBWE != NULL ) { count_free( hCPE->hStereoICBWE ); Loading Loading @@ -938,6 +944,13 @@ ivas_error stereo_memory_dec( stereo_tca_init_dec( hCPE->hStereoTCA ); } if ( hCPE->hStereoTCA != NULL && hCPE->element_mode == IVAS_CPE_MDCT ) { /* note: in MASA, hCPE->hStereoMdct->itd = 0 */ count_free( hCPE->hStereoTCA ); hCPE->hStereoTCA = NULL; } #endif } } Loading