install-types: Add graphic-drivers and SF15K support to SPARC distribution
[oi-userland.git] / components / encumbered / x265 / patches / gcc7.patch
blob5b57bb43fbea0660418c4aaf02338e7ee6ab138d
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
3 @@ -2674,8 +2674,8 @@
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 */
13 if (trainingCount)