Commit 51e30f55 authored by vaillancour's avatar vaillancour
Browse files

fix an none-bitexact case found for REUSE_EVS_BE_ACELP_4T64

parent c7bbe25c
Loading
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
@@ -408,12 +408,26 @@ void E_ACELP_4tsearchx_fx(
    nb_pulse_m2 = sub( nb_pulse, 2 );

    /* Init to avoid crash when the search does not find a solution */
#ifdef REUSE_EVS_BE_ACELP_4T64
    IF( EQ_16( element_mode, EVS_MONO ) )
#endif
    {
        FOR( k = 0; k < nb_pulse; k++ )
        {
            codvec[k] = k;
            move16();
        }

    }
#ifdef REUSE_EVS_BE_ACELP_4T64
    ELSE
    {
        FOR( k = 0; k < nb_pulse; k++ )
        {
            codvec[k] = s_and( k, 3 );
            move16();
        }
    }
#endif
    scale = 0;
    move16();
    s = L_mult0( Rw[0], Rw[0] ); /*Q18*/