提交 543b52cf 编写于 作者: M mcherkas

8157764: Better handling of interpolation plugins

Reviewed-by: prr, serb, mschoene
上级 e64997c9
......@@ -244,7 +244,7 @@ void LinLerp1D(register const cmsUInt16Number Value[],
// To prevent out of bounds indexing
cmsINLINE cmsFloat32Number fclamp(cmsFloat32Number v)
{
return v < 0.0f ? 0.0f : (v > 1.0f ? 1.0f : v);
return v < 0.0f || isnan(v) ? 0.0f : (v > 1.0f ? 1.0f : v);
}
// Floating-point version of 1D interpolation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册