Commit a1ad50e4 authored by vaillancour's avatar vaillancour
Browse files

fix overflow issue

parent d44b0640
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -476,8 +476,13 @@ void pitch_modify_x(Word16 *s_LP, Word16 *voicing, Word16 *pitch, Word16 FrameSi
    eng1 = L_mult0(eng1_w, eng2_w);

    norm = norm_l(eng1);
#ifdef BASOP_NOGLOB     
    eng1_w = extract_h(L_shl_sat(eng1, norm));
    eng2_w = extract_h(L_shl_sat(eng3, norm));
#else
    eng1_w = extract_h(L_shl(eng1, norm));
    eng2_w = extract_h(L_shl(eng3, norm));
#endif

    IF (GE_32(eng3,eng1))
    {