Commit cd2390ad authored by vasilache's avatar vasilache
Browse files

Merge branch '1054-input-to-decode_comb-in-deindex_lvq_shb-should-be-positive' into 'main'

[NON-BE] Fix negative index in deindex_lvq_SHB

See merge request !1490
parents 951a222e 107b96f5
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -828,7 +828,11 @@ void deindex_lvq_SHB(

        /* find idx_leader */
        i = 1;
#ifdef NONBE_FIX_1054_NEGATIVE_LVQ_INDEX
        while ( index > table_no_cv[i] )
#else
        while ( index >= table_no_cv[i] )
#endif
        {
            i++;
        }
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@
#define NONBE_FIX_1056_ISM_RATE_SWITCH                  /* FhG: Fix #1056: fix TC buffer udpate on a ISM rate switch */	

#define NON_BE_FIX_1048_THRESHOLD_COH_BASOP             /* Nokia: Fix 1048 replace comparison with 0 with comparison to threshold, to align with BASOP*/
#define  NONBE_FIX_1054_NEGATIVE_LVQ_INDEX              /* Nokia: issue 1054: Input to decode_comb in deindex_lvq_SHB should be positive */

/* ##################### End NON-BE switches ########################### */