tapi: datarace fixup for cvtColor
This commit is contained in:
parent
9bcccb028b
commit
4eef486afe
@ -8425,6 +8425,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
|
|||||||
CV_Assert( dcn == 1 );
|
CV_Assert( dcn == 1 );
|
||||||
CV_Assert( scn == 2 && depth == CV_8U );
|
CV_Assert( scn == 2 && depth == CV_8U );
|
||||||
|
|
||||||
|
src.release(); // T-API datarace fixup
|
||||||
extractChannel(_src, _dst, code == CV_YUV2GRAY_UYVY ? 1 : 0);
|
extractChannel(_src, _dst, code == CV_YUV2GRAY_UYVY ? 1 : 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user