Commit 6be7869a authored by Ilya Lavrenov's avatar Ilya Lavrenov

fix for unsupported doubles

parent 4a4151ec
......@@ -4355,9 +4355,8 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
d.preferredVectorWidthShort(), d.preferredVectorWidthShort(),
d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(),
d.preferredVectorWidthDouble(), -1 }, width = vectorWidths[depth];
CV_Assert(width >= 0);
if (ssize.width * cn < width)
if (ssize.width * cn < width || width <= 0)
return 1;
std::vector<size_t> offsets, steps, cols;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment