Commit e3f468c6 authored by sagnowski's avatar sagnowski
Browse files

Fix distorted output from DirAC

parent 21394295
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -461,6 +461,9 @@ static void ivas_dirac_dec_binaural_internal(
    uint8_t firstSlot, slotEnd;
    int16_t max_band_decorr;
    DIFFUSE_DISTRIBUTION_DATA diffuseDistData;
#ifdef FLOAT_INTERFACE_DEC_REND
    float tmp[L_FRAME16k];
#endif

    firstSlot = firstSubframe * ( CLDFB_NO_COL_MAX / MAX_PARAM_SPATIAL_SUBFRAMES );
    slotEnd = ( firstSubframe + nSubframes ) * ( CLDFB_NO_COL_MAX / MAX_PARAM_SPATIAL_SUBFRAMES );
@@ -516,7 +519,11 @@ static void ivas_dirac_dec_binaural_internal(

                    generate_masking_noise_dirac( st_ivas->hSCE[0]->hCoreCoder[0]->hFdCngDec->hFdCngCom,
                                                  st_ivas->cldfbAnaDec[1],
#ifdef FLOAT_INTERFACE_DEC_REND
                                                  tmp, /*used as temporary static buffer for the whole frame*/
#else
                                                  &( output_f[1][L_FRAME48k - L_FRAME16k] ), /*used as temporary static buffer for the whole frame*/
#endif
                                                  Cldfb_RealBuffer_in[2][slot], Cldfb_ImagBuffer_in[2][slot],
                                                  slot,
                                                  st_ivas->hSCE[0]->hCoreCoder[0]->cna_dirac_flag && st_ivas->hSCE[0]->hCoreCoder[0]->flag_cna,