tapi: datarace fixup for cvtColor

This commit is contained in:
Alexander Alekhin 2015-07-28 11:48:20 +03:00
parent 9bcccb028b
commit 4eef486afe

View File

@ -8425,6 +8425,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
CV_Assert( dcn == 1 );
CV_Assert( scn == 2 && depth == CV_8U );
src.release(); // T-API datarace fixup
extractChannel(_src, _dst, code == CV_YUV2GRAY_UYVY ? 1 : 0);
}
break;