Commit b2d4f1ac authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for infinite loop issue observed with an LTV test stream of -10dB.

During conversion of some sub-modules, value of macro MASA2TOTAL_THR
was modified in fixed point considering conversion error margin. This
was causing the issue. After the dependent sub-modules conversion, the
same value has been reverted back.
parent 56e3f09b
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1159,8 +1159,8 @@ enum
#define MASA_TRANSP_BITS                        1
#define NO_BITS_MASA_ISM_NO_OBJ                 2
#ifdef IVAS_FLOAT_FIXED
#define MASA2TOTAL_THR                          0.979965f // Temporary
#define MASA2TOTAL_THR_Q30                      1052229376l // 0.979965f in Q30
#define MASA2TOTAL_THR                          0.98f
#define MASA2TOTAL_THR_Q30                      1052266987 // 0.98f in Q30
//Maximum error in float to fixed conversion : 0.005%
//Assuming the accuracy of 99.995%
//New value = 99.995 / 100 * 0.98 = 0.979951