Commit be02f69a authored by vaillancour's avatar vaillancour
Browse files

Fixes for stv16c_dtx_24400_16kHz.b10.COD

parent a3a5bb9b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -306,7 +306,11 @@ void FEC_clas_estim_fx(
            test();
            IF (EQ_16(codec_mode , MODE1)||!(NE_16(LTP_Gain,-32768/*-1.f Q15*/)&&EQ_16(mode,CLASSIFIER_TCX)))
            {
#ifdef BASOP_NOGLOB
                pc = shr(abs_s(sub(add_o(pitch[3], sub(pitch[2], pitch[1]), &Overflow), pitch[0])), 6);
#else
                pc = shr(abs_s(sub(add(pitch[3], sub(pitch[2], pitch[1])), pitch[0])), 6);
#endif

                if(EQ_16(L_frame,L_FRAME16k))
                {
+6 −0
Original line number Diff line number Diff line
@@ -564,9 +564,15 @@ void bass_psfilter_fx(

            Ltmp = L_abs(Lcorr);
            exp = norm_l(Ltmp);
#ifdef BASOP_NOGLOB
            tmp = round_fx_o(L_shl_o(Ltmp, exp, &Overflow), &Overflow);
            exp2 = norm_l(Lener);
            tmp2 = round_fx_o(L_shl_o(Lener, exp2, &Overflow), &Overflow);
#else
            tmp = round_fx(L_shl(Ltmp, exp));
            exp2 = norm_l(Lener);
            tmp2 = round_fx(L_shl(Lener, exp2));
#endif
            if (GT_16(tmp, tmp2))
            {
                exp = sub(exp, 1);