Commit 52a8d37f authored by Dmitry-Me's avatar Dmitry-Me

Fix potential null pointer dereference

parent 3c54c50c
...@@ -1595,7 +1595,10 @@ void cvCalibrationMatrixValues( const CvMat *calibMatr, CvSize imgSize, ...@@ -1595,7 +1595,10 @@ void cvCalibrationMatrixValues( const CvMat *calibMatr, CvSize imgSize,
my = imgHeight / apertureHeight; my = imgHeight / apertureHeight;
} else { } else {
mx = 1.0; mx = 1.0;
my = *pasp; if(pasp)
my = *pasp;
else
my = 1.0;
} }
/* Calculate fovx and fovy. */ /* Calculate fovx and fovy. */
......
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