Commit ac39185c authored by vaillancour's avatar vaillancour
Browse files

Fixes for stv32n1_dtx_sw_59_164_32kHz.COD

parent 847d2581
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -545,6 +545,7 @@ Word16 mean_fx( /* o : mean of vector */
)
{
    Word16 tmp;
    PMT( "TBV : this function could be written differently to minimize the risk of saturation")
    tmp = sum16_fx(vec_fx,lvec_fx);
    tmp = mult_r(tmp,div_s(1,lvec_fx));

@@ -1423,7 +1424,11 @@ Word16 sum16_fx( /* o : sum of all vector elements Qx*/
    move16();
    FOR( i=0; i<lvec; i++ )
    {
#ifdef BASOP_NOGLOB
        tmp = add_sat(tmp,vec[i]); /*Qx */
#else
        tmp = add(tmp,vec[i]); /*Qx */
#endif
    }

    return tmp;
+2 −1
Original line number Diff line number Diff line
@@ -373,6 +373,7 @@ void decod_audio_fx(
                move16();
            }
        }
        PMT("in the rare case of 4 subfr, bfi_pitch_fx might be wrong")
        st_fx->bfi_pitch_fx  = mean_fx(pitch_buf, nb_subfr);  
        move16();
        st_fx->bfi_pitch_frame_fx = st_fx->L_frame_fx;