Fix potential null pointer dereference

This commit is contained in:
Dmitry-Me 2015-03-16 18:36:12 +03:00
parent 3c54c50c5a
commit 52a8d37f11

View File

@ -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. */