Commit e9318119 authored by Arun Ganesh Nayak's avatar Arun Ganesh Nayak
Browse files

vad_flag update bug fix in wb_vad_ivas_fx()

parent fd8bc4cd
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2638,11 +2638,15 @@ Word16 wb_vad_ivas_fx(
        /* DTX HANGOVER  is in pre_proc_fx()  */
        flag_he1 = 0;
        move16();

        st_fx->localVAD = 0;
        move16();
        IF( EQ_16( BASOP_Util_Cmp_Mant32Exp( L_mssnr, L_mssnr_e, L_vad_thr, 18 ), 1 ) )
        {
            flag_he1 = 1;
            move16();                                                          /* he1 primary decision */
            move16();
            st_fx->localVAD = 1;
            move16();
            /* he1 primary decision */
            hVAD->nb_active_frames_he1 = add( hVAD->nb_active_frames_he1, 1 ); /* Counter of consecutive active speech frames */
            move16();