1 --- x265_3.1.1/source/encoder/analysis.cpp.orig 2020-03-30 20:54:29.540016476 +0000
2 +++ x265_3.1.1/source/encoder/analysis.cpp 2020-03-30 20:54:56.698314298 +0000
5 offset = (depth * X265_REFINE_INTER_LEVELS) + i;
6 /* Calculate distance values */
7 - diffRefine[i] = abs((int64_t)(trainData.cuVariance - m_frame->m_classifyVariance[offset]));
8 - diffRefineRd[i] = abs((int64_t)(cuCost - m_frame->m_classifyRd[offset]));
9 + diffRefine[i] = labs((int64_t)(trainData.cuVariance - m_frame->m_classifyVariance[offset]));
10 + diffRefineRd[i] = labs((int64_t)(cuCost - m_frame->m_classifyRd[offset]));
12 /* Calculate prior probability - ranges between 0 and 1 */