Commit 68697fcc authored by reutelhuber's avatar reutelhuber
Browse files

pull update of past matrix value inside time slot loop

parent a1ae4dbd
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -1204,6 +1204,7 @@ void ivas_spar_dec_upmixer(
                        for ( in_ch = 0; in_ch < numch_in; in_ch++ )
                        {
                            mixer_mat[out_ch][in_ch][spar_band] = (1 - hSpar->hMdDec->smooth_fac[in_ch][spar_band]) * mixer_mat[out_ch][in_ch][spar_band] + hSpar->hMdDec->smooth_fac[in_ch][spar_band] * hSpar->hMdDec->mixer_mat_prev2[out_ch][in_ch][spar_band];
                            hSpar->hMdDec->mixer_mat_prev2[out_ch][in_ch][spar_band] = mixer_mat[out_ch][in_ch][spar_band];
                        }
                    }
                }
@@ -1257,22 +1258,6 @@ void ivas_spar_dec_upmixer(
            }
        }

#ifdef LBR_ADAP_SMOOTHING
        if ( hDecoderConfig->ivas_total_brate < IVAS_24k4 )
        {
            for ( spar_band = 0; spar_band < num_spar_bands; spar_band++ )
            {
                for ( out_ch = 0; out_ch < numch_out; out_ch++ )
                {
                    for ( in_ch = 0; in_ch < numch_in; in_ch++ )
                    {
                        hSpar->hMdDec->mixer_mat_prev2[out_ch][in_ch][spar_band] = mixer_mat[out_ch][in_ch][spar_band];
                    }
                }
            }
        }
#endif

        if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA && hDecoderConfig->output_config != AUDIO_CONFIG_STEREO && hDecoderConfig->output_config != AUDIO_CONFIG_MONO )
        {
            ivas_dirac_dec( st_ivas, output, nchan_internal, cldfb_in_ts_re, cldfb_in_ts_im, i_sf );