Merge pull request #19625 from mshabunin:static-analysis-issues-34

pull/19628/head
Alexander Alekhin 4 years ago
commit 20a46b31cd
  1. 1
      modules/calib3d/src/sqpnp.hpp
  2. 2
      modules/dnn/src/layers/pooling_layer.cpp
  3. 2
      modules/videoio/src/cap_msmf.cpp

@ -72,6 +72,7 @@ private:
cv::Matx<double, 9, 1> r_hat;
cv::Matx<double, 3, 1> t;
double sq_error;
SQPSolution() : sq_error(0) {}
};
/*

@ -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);
}

@ -309,7 +309,7 @@ class SourceReaderCB : public IMFSourceReaderCallback
{
public:
SourceReaderCB() :
m_nRefCount(0), m_hEvent(CreateEvent(NULL, FALSE, FALSE, NULL)), m_bEOS(FALSE), m_hrStatus(S_OK), m_reader(NULL), m_dwStreamIndex(0)
m_nRefCount(0), m_hEvent(CreateEvent(NULL, FALSE, FALSE, NULL)), m_bEOS(FALSE), m_hrStatus(S_OK), m_reader(NULL), m_dwStreamIndex(0), m_lastSampleTimestamp(0)
{
}

Loading…
Cancel
Save