Commit ede9d023 authored by gaoyuy's avatar gaoyuy
Browse files

Fixed memory release issue with FOA format output

parent 6a9d7a55
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1745,7 +1745,7 @@ int16_t ivas_mp_dec_open(
        set_f( hMp->slot_smooth_energy[i], 0.f, MP_MAX_AVERG_ENERGY_SLOTS );
    }

    hMp->decorr_flag = 1;
    hMp->decorr_flag = 0;
    if ( synthesis_cfg != MP_SYNTHESISE_BYPASS )
    {
        if ( ( error = ivas_mp_decorr_open_dec( hMp, order, total_bitrate, output_Fs ) ) != IVAS_ERR_OK )
@@ -1880,6 +1880,8 @@ int16_t ivas_mp_dec(
    nchan_transport = hConfig->nchan_transport;
    internal_nchan_synthesis_output = hMp->internal_nchan_synthesis_output;
    output_config = hMp->output_cfg;
    is_transient_flag[0] = 0;
    is_transient_flag[1] = 0;

    ivas_mp_transport_channels_recovery( output, nchan_transport, hConfig->transport_channels_map,
                                         internal_nchan_synthesis_output, output_frame, hMp->synthesis_cfg );
@@ -1901,7 +1903,10 @@ int16_t ivas_mp_dec(
        }
    }

    if ( hMp->decorr_flag )
    {
        ivas_transient_det_process( hMp->hDecorr->pTrans_det, output[0], output_frame, is_transient_flag );
    }

    for ( subframe_idx = 0; subframe_idx < hConfig->nb_subframes; subframe_idx++ )
    {