Commit 99766570 authored by vaillancour's avatar vaillancour
Browse files

fix saturation missing in EVS counter

parent 24cb7eef
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ ivas_error acelp_core_enc_fx(
        st_fx->Nb_ACELP_frames = 0;
        move16();
    }
    st_fx->Nb_ACELP_frames = add( st_fx->Nb_ACELP_frames, 1 ); // Q0
    st_fx->Nb_ACELP_frames = add_sat( st_fx->Nb_ACELP_frames, 1 ); // Q0
    move16();

    int_fs_fx = INT_FS_16k_FX;
@@ -967,7 +967,7 @@ ivas_error acelp_core_enc_ivas_fx(
        st->Nb_ACELP_frames = 0;
        move16();
    }
    st->Nb_ACELP_frames = add( st->Nb_ACELP_frames, 1 );
    st->Nb_ACELP_frames = add_sat( st->Nb_ACELP_frames, 1 );
    move16();

    IF( EQ_16( st->L_frame, L_FRAME ) )