Commit f96c9b78 authored by Jiaquan Huo's avatar Jiaquan Huo
Browse files

remove unused array

parent f6a64672
Loading
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -193,8 +193,7 @@ static int16_t d_lev_dur(
static int16_t lfeplc_lev_dur(
    float *a_out,    /* o  : LP coefficients (a[0] = 1.0) */
    const float *r,  /* i  : vector of autocorrelations   */
    const int16_t m, /* i  : order of LP filter           */
    float epsP[]     /* o  : prediction error energy      */
    const int16_t m  /* i  : order of LP filter           */
)
#endif
{
@@ -221,15 +220,16 @@ static int16_t lfeplc_lev_dur(
    for ( i = 0; i <= LFE_PLC_LPCORD; i++ )
    {
        a_out[i] = 0.f;
        epsP[i] = 0.f;
    }
#endif

#ifndef NONE_BE_FIX_816_LFE_PLC_FLOAT
    if ( epsP != NULL )
    {
        epsP[0] = r[0];
        epsP[1] = err;
    }
#endif

    for ( i = 2; i <= m; i++ )
    {
@@ -281,10 +281,12 @@ static int16_t lfeplc_lev_dur(
            err = 0.01f;
        }

#ifndef NONE_BE_FIX_816_LFE_PLC_FLOAT
        if ( epsP != NULL )
        {
            epsP[i] = err;
        }
#endif
    }

    return ( flag );
@@ -570,7 +572,7 @@ static void recover_samples(
    d_autocorr( d_outbuf, d_r, LFE_PLC_LPCORD, LFE_PLC_BUFLEN, d_hamm_lfe_plc, 0, 1, 1 );
#else
    float delta, fac, att;
    float r[LFE_PLC_LPCORD + 1], a[LFE_PLC_LPCORD + 1], pee[LFE_PLC_LPCORD + 1];
    float r[LFE_PLC_LPCORD + 1], a[LFE_PLC_LPCORD + 1];

    autocorr( outbuf, r, LFE_PLC_LPCORD, LFE_PLC_BUFLEN, hamm_lfe_plc, 0, 1, 1 );
#endif
@@ -592,7 +594,7 @@ static void recover_samples(
    fac = 1.0 + delta;
    att = 1.0;
#else
    lfeplc_lev_dur( a, r, LFE_PLC_LPCORD, pee );
    lfeplc_lev_dur( a, r, LFE_PLC_LPCORD );

    delta = find_max_delta( a + 1 );