Fix potential null pointer dereference

pull/3832/head
Dmitry-Me 10 years ago
parent 3c54c50c5a
commit 52a8d37f11
  1. 5
      modules/calib3d/src/calibration.cpp

@ -1595,7 +1595,10 @@ void cvCalibrationMatrixValues( const CvMat *calibMatr, CvSize imgSize,
my = imgHeight / apertureHeight;
} else {
mx = 1.0;
my = *pasp;
if(pasp)
my = *pasp;
else
my = 1.0;
}
/* Calculate fovx and fovy. */

Loading…
Cancel
Save