1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fixed several issues found by static analysis

This commit is contained in:
Maksim Shabunin
2021-02-24 20:31:00 +03:00
parent 67b6ef4c2a
commit b2321576bc
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -750,7 +750,7 @@ virtual Ptr<BackendNode> initNgraph(const std::vector<Ptr<BackendWrapper> >& inp
if (max_elem!=last)
{
dstData[x0] = *max_elem;
if( compMaxIdx )
if( compMaxIdx && dstMaskData )
{
dstMaskData[x0] = std::distance(first, max_elem);
}