mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
imgproc: add missing check into cvtColorTwoPlane()
This commit is contained in:
@@ -406,6 +406,8 @@ void cvtColorTwoPlaneYUV2BGRpair( InputArray _ysrc, InputArray _uvsrc, OutputArr
|
||||
|
||||
Mat ysrc = _ysrc.getMat(), uvsrc = _uvsrc.getMat();
|
||||
|
||||
CV_CheckEQ(ysrc.step, uvsrc.step, "");
|
||||
|
||||
_dst.create( ysz, CV_MAKETYPE(depth, dcn));
|
||||
Mat dst = _dst.getMat();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user