From 4eef486afec42bb1ffcc97e8b82e112acfe8af26 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 28 Jul 2015 11:48:20 +0300 Subject: [PATCH] tapi: datarace fixup for cvtColor --- modules/imgproc/src/color.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/imgproc/src/color.cpp b/modules/imgproc/src/color.cpp index 33ab41f4f8e5..3c3e51255586 100644 --- a/modules/imgproc/src/color.cpp +++ b/modules/imgproc/src/color.cpp @@ -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;