提交 9ea5b6bb 编写于 作者: V Vadim Pisarevsky

fixed possible access violation in HSV2RGB (patch #2020)

上级 bbeffcc1
......@@ -934,6 +934,11 @@ struct HSV2RGB_f
do h -= 6; while( h >= 6 );
sector = cvFloor(h);
h -= sector;
if( (unsigned)sector >= 6u )
{
sector = 0;
h = 0.f;
}
tab[0] = v;
tab[1] = v*(1.f - s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册