Fix potential null pointer dereference
This commit is contained in:
parent
3c54c50c5a
commit
52a8d37f11
@ -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…
x
Reference in New Issue
Block a user