]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tiesr/tiesr.git/commitdiff
[#1341] Fix loc_accum normalization to use frame_cnt[0].
authorlnetsch <lnetsch@mycompany.com>
Wed, 11 May 2011 18:01:14 +0000 (18:01 +0000)
committerlnetsch <lnetsch@mycompany.com>
Wed, 11 May 2011 18:01:14 +0000 (18:01 +0000)
git-svn-id: https://gforge.ti.com/svn/tiesr/trunk@70 469fd053-429d-4955-9e4c-93c0d7a8ff27

TIesrEngine/src/jac-estm.cpp

index caf3973dc99f31c0533b0004fd405845384e10b9..f15056187830968c05eb428da2b583a2cce925a7 100755 (executable)
@@ -1154,8 +1154,9 @@ TIesrEngineJACStatusType JAC_update(gmhmm_type *gvv)
 #endif
        
        FOREACH(d, gv->n_filter*2) { 
-         
-         long top = (gv->frm_cnt == 0)?0:(loc_accum[d] / gv->frm_cnt); /* each utterance has a same weight */
+
+          /* each utterance has a same weight */
+          long top = (frame_cnt[0] == 0) ?  0 : (loc_accum[d] / frame_cnt[0]);
 #ifdef USE_IJAC
          glb_accum[d] = q15_x(gv->smooth_coef, glb_accum[d]) + top; 
 #else