Fix potential null pointer dereference
This commit is contained in:
		| @@ -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; | ||||||
|  |         if(pasp) | ||||||
|             my = *pasp; |             my = *pasp; | ||||||
|  |         else | ||||||
|  |             my = 1.0; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Calculate fovx and fovy. */ |     /* Calculate fovx and fovy. */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dmitry-Me
					Dmitry-Me