[LMCS] Add an assert in deriveReshapeParametersSDR to remove static analyser warning

This commit is contained in:
Marko Viitanen 2021-04-30 16:41:06 +03:00
parent 915057c0c5
commit 3fadd91fb5

View file

@ -489,6 +489,7 @@ static void deriveReshapeParametersSDR(lmcs_aps* aps, bool* intraAdp, bool* inte
double percBinVarLessThenVal1 = 0.0;
double percBinVarLessThenVal2 = 0.0;
double percBinVarLessThenVal3 = 0.0;
assert(aps->m_binNum > 2); // For static analyzer to figure out we are not out-of-bounds
assert(aps->m_binNum <= PIC_ANALYZE_CW_BINS);
//int* binIdxSortDsd = malloc(sizeof(int) * aps->m_binNum);
//double* binVarSortDsd = malloc(sizeof(double) * aps->m_binNum);