Skip to content

Commit

Permalink
tapi: datarace fixup for cvtColor
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jul 28, 2015
1 parent 9bcccb0 commit 4eef486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/imgproc/src/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4eef486

Please sign in to comment.