Commit 1d5c76a4 authored by bayers's avatar bayers
Browse files

fix McMASA 3TC binaural rendering

parent 5fb1890d
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -576,16 +576,23 @@ void ivas_dirac_dec_binaural(
    float *p_output[MAX_OUTPUT_CHANNELS];
    int16_t ch;
    int16_t slot_size;
    int16_t numInChannels;

    slot_size = NS2SA( st_ivas->hDecoderConfig->output_Fs, CLDFB_SLOT_NS );
    for ( ch = 0; ch < 2 * BINAURAL_CHANNELS; ch++ )
    {
        p_output[ch] = &output_f[ch][0];
    }
    for ( ch = 0; ch < nchan_transport; ch++ )
    numInChannels = nchan_transport;
    if ( st_ivas->hOutSetup.separateChannelEnabled )
    {
        numInChannels++;
    }
    for ( ch = 0; ch < numInChannels; ch++ )
    {
        st_ivas->hTcBuffer->tc[ch] = &output_f[ch][0];
    }

    ivas_dirac_dec_set_md_map( st_ivas, DEFAULT_JBM_CLDFB_TIMESLOTS );
    if ( st_ivas->ivas_format == SBA_FORMAT && st_ivas->sba_mode == SBA_MODE_SPAR )
    {