Commit 3c598f99 authored by vaclav's avatar vaclav
Browse files

accept NONBE_FIX_808_JBM_PARAMUPMIX_RS

parent de65e137
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -159,7 +159,6 @@
/* any switch which is non-be wrt selection floating point code */
/* all switches in this category should start with "NONBE_" */

#define NONBE_FIX_808_JBM_PARAMUPMIX_RS                       /* FhG: Issue 808: fix JBM MC rate switching */
#define NONBE_FIX_846_JBM_MASA_SIDSTART                       /* FhG: Issue #846: fix JBM for MASA DTX when the first frame is a SID frame */
#define NONBE_FIX_841_MC_RS_TDOBJ_RENDERER                    /* FhG: Issue #841: [Non-BE] Resolve "MC RS HRFT handle not set to NULL" */
#define NONBE_FIX_840_PARAMMC_RS                              /* FhG: Issue #840: Resolve "MC RS ParamMC hoa encoder wrongly set to zero" */
+0 −13
Original line number Diff line number Diff line
@@ -662,7 +662,6 @@ ivas_error ivas_mc_paramupmix_dec_open(
    hMCParamUpmix->free_param_interpolator = 0;
    hMCParamUpmix->param_interpolator = NULL;

#ifdef NONBE_FIX_808_JBM_PARAMUPMIX_RS
    if ( st_ivas->hDecoderConfig->Opt_5ms == 1 )
    {
        if ( ( hMCParamUpmix->param_interpolator = (float *) malloc( MAX_JBM_CLDFB_TIMESLOTS * sizeof( float ) ) ) == NULL )
@@ -673,7 +672,6 @@ ivas_error ivas_mc_paramupmix_dec_open(

        ivas_jbm_dec_get_adapted_linear_interpolator( DEFAULT_JBM_CLDFB_TIMESLOTS, DEFAULT_JBM_CLDFB_TIMESLOTS, hMCParamUpmix->param_interpolator );
    }
#endif

    if ( st_ivas->hDecoderConfig->Opt_5ms == 1 && st_ivas->hTcBuffer == NULL )
    {
@@ -684,12 +682,6 @@ ivas_error ivas_mc_paramupmix_dec_open(
        buffer_mode = TC_BUFFER_MODE_RENDERER;
        nchan_tc = ivas_jbm_dec_get_num_tc_channels( st_ivas );
        nchan_to_allocate = MC_PARAMUPMIX_MAX_INPUT_CHANS;
#ifndef NONBE_FIX_808_JBM_PARAMUPMIX_RS
        if ( ( hMCParamUpmix->param_interpolator = (float *) malloc( MAX_JBM_CLDFB_TIMESLOTS * sizeof( float ) ) ) == NULL )
        {
            return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for interpolator\n" ) );
        }
#endif

        if ( st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_STEREO || st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_MONO )
        {
@@ -706,11 +698,6 @@ ivas_error ivas_mc_paramupmix_dec_open(
        {
            return error;
        }
#ifndef NONBE_FIX_808_JBM_PARAMUPMIX_RS
        hMCParamUpmix->free_param_interpolator = 1;

        ivas_jbm_dec_get_adapted_linear_interpolator( DEFAULT_JBM_CLDFB_TIMESLOTS, DEFAULT_JBM_CLDFB_TIMESLOTS, hMCParamUpmix->param_interpolator );
#endif
    }

    st_ivas->hMCParamUpmix = hMCParamUpmix;
+0 −2
Original line number Diff line number Diff line
@@ -1347,7 +1347,6 @@ static ivas_error ivas_mc_dec_reconfig(
        {
            tc_nchan_full_new = 0;
        }
#ifdef NONBE_FIX_808_JBM_PARAMUPMIX_RS
        else if ( st_ivas->mc_mode == MC_MODE_PARAMUPMIX )
        {
            tc_nchan_allocate_new = MC_PARAMUPMIX_MAX_INPUT_CHANS;
@@ -1360,7 +1359,6 @@ static ivas_error ivas_mc_dec_reconfig(
            }
            tc_nchan_full_new = tc_nchan_allocate_new;
        }
#endif

        /* reconfigure buffer */
        if ( hTcBuffer->tc_buffer_mode != tc_buffer_mode_new || hTcBuffer->nchan_transport_jbm != tc_nchan_tc_new ||