Loading lib_dec/ivas_sba_dec.c +12 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,18 @@ ivas_error ivas_sba_dec_reconfigure( return error; } } #ifdef FIX_736_FOA_BR_SWITCH if ( ( hSpar->hPCA == NULL ) && ( st_ivas->hDecoderConfig->ivas_total_brate == PCA_BRATE && sba_order_internal == 1 ) ) { if ( ( hSpar->hPCA = (PCA_DEC_STATE *) malloc( sizeof( PCA_DEC_STATE ) ) ) == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for PCA decoder" ); } ivas_pca_dec_init( hSpar->hPCA ); } #endif ivas_spar_config( ivas_total_brate, sba_order_internal, &st_ivas->nchan_transport, &st_ivas->nSCE, &st_ivas->nCPE, &hSpar->core_nominal_brate, st_ivas->sid_format ); } else Loading Loading
lib_dec/ivas_sba_dec.c +12 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,18 @@ ivas_error ivas_sba_dec_reconfigure( return error; } } #ifdef FIX_736_FOA_BR_SWITCH if ( ( hSpar->hPCA == NULL ) && ( st_ivas->hDecoderConfig->ivas_total_brate == PCA_BRATE && sba_order_internal == 1 ) ) { if ( ( hSpar->hPCA = (PCA_DEC_STATE *) malloc( sizeof( PCA_DEC_STATE ) ) ) == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for PCA decoder" ); } ivas_pca_dec_init( hSpar->hPCA ); } #endif ivas_spar_config( ivas_total_brate, sba_order_internal, &st_ivas->nchan_transport, &st_ivas->nSCE, &st_ivas->nCPE, &hSpar->core_nominal_brate, st_ivas->sid_format ); } else Loading