diff --git a/src/lib/exhaleEnc.cpp b/src/lib/exhaleEnc.cpp index 6255a66..7101261 100644 --- a/src/lib/exhaleEnc.cpp +++ b/src/lib/exhaleEnc.cpp @@ -275,18 +275,7 @@ static inline void applyTnsCoeffPreProcessing (LinearPredictor& predictor, TnsDa if (commonFlag != nullptr) *commonFlag &= (tnsData1.coeffResLow[n] == tnsData2.coeffResLow[n] && tnsData1.filterOrder[n] == tnsData2.filterOrder[n]); if (commonFlag != nullptr && *commonFlag) { - const int32_t coeff1 = (int32_t) - ((uint32_t) tnsData1.coeff[n][0]) | - ((uint32_t) tnsData1.coeff[n][1] << 8) | - ((uint32_t) tnsData1.coeff[n][2] << 16) | - ((uint32_t) tnsData1.coeff[n][3] << 24); - const int32_t coeff2 = (int32_t) - ((uint32_t) tnsData2.coeff[n][0]) | - ((uint32_t) tnsData2.coeff[n][1] << 8) | - ((uint32_t) tnsData2.coeff[n][2] << 16) | - ((uint32_t) tnsData2.coeff[n][3] << 24); - - *commonFlag &= (coeff1 == coeff2); + *commonFlag &= (memcmp(tnsData1.coeff[n],tnsData2.coeff[n],sizeof(tnsData1.coeff[n])) == 0); } }