Commit 346b7489 authored by bayers's avatar bayers
Browse files

fix for #1005, fix TC Buffer update on a MC rate switch

parent c3148745
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@
#endif

#define NONBE_FIX_984_OMASA_EXT_OUTPUT                        /* Nokia: issue #984: complete the OMASA EXT output implementation */
#define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE                  /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */

/* ##################### End NON-BE switches ########################### */

+21 −14
Original line number Diff line number Diff line
@@ -774,6 +774,10 @@ static ivas_error ivas_mc_dec_reconfig(
    ivas_output_init( &( st_ivas->hIntSetup ), st_ivas->intern_config );

    /* transfer subframe info from DirAC or ParamMC to central tc buffer */
#ifdef NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE
    if ( st_ivas->hTcBuffer->tc_buffer_mode != TC_BUFFER_MODE_BUFFER )
    {
#endif
        if ( last_mc_mode == MC_MODE_PARAMMC )
        {
            st_ivas->hTcBuffer->nb_subframes = st_ivas->hParamMC->nb_subframes;
@@ -790,6 +794,9 @@ static ivas_error ivas_mc_dec_reconfig(
            st_ivas->hTcBuffer->slots_rendered = st_ivas->hSpatParamRendCom->slots_rendered;
            mvs2s( st_ivas->hSpatParamRendCom->subframe_nbslots, st_ivas->hTcBuffer->subframe_nbslots, MAX_JBM_SUBFRAMES_5MS );
        }
#ifdef NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE
    }
#endif

    /* JBM: when granularity goes down (e.g. MCT with CREND -> ParamMC with binaural fastconv
            render what still fits in the new granularity */