Commit 375afdb8 authored by lefort's avatar lefort
Browse files

Initialisation missing fixed.

parent 4168f1d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -985,7 +985,7 @@ typedef struct stereo_dmx_evs_phase_only_correlation_structure
#ifdef ENHANCED_STEREO_DMX
typedef struct stereo_dmx_evs_correlation_filter_structure
{
    float ipd_ff[L_FRAME48k / 2 + 1];
    float ipd_ff[L_FRAME16k / 2 + 1];
    float Pr[L_FRAME48k / 2 + 1];
    float Pi[L_FRAME48k / 2 + 1];

+4 −2
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ static void calc_poc(

#ifdef ENHANCED_STEREO_DMX

    end8 = 160;
    end8 = L_FRAME16k / 2;

    // Memorize the filters N-1
    for ( n = 0; n < CPE_CHANNELS; n++ )
@@ -1423,7 +1423,7 @@ ivas_error stereo_dmx_evs_init_encoder(
    a_min = 0.8576958985908941;
    a_max = 0.9440608762859234;
    itrh = 60;
    n0 = input_frame / 2;
    n0 = L_FRAME16k / 2;
    a_step = ( a_min - a_max ) / (n0+1-itrh);
    ipd_ff = hStereoDmxEVS->hPHA->ipd_ff;
    for ( n = 0; n < itrh; n++ )
@@ -1434,6 +1434,8 @@ ivas_error stereo_dmx_evs_init_encoder(
    {
        ipd_ff[n] = a_max + (n-itrh) * a_step;
    }
    set_zero( hStereoDmxEVS->hPHA->Pr, L_FRAME48k / 2 + 1 );
    set_zero( hStereoDmxEVS->hPHA->Pi, L_FRAME48k / 2 + 1 );

    hStereoDmxEVS->hPHA->prc_thres = STEREO_DMX_EVS_SWTCH_PRC_THRES * input_Fs / 1000;