Merge pull request #11194 from ltqusst:fix_10557

pull/11198/head
Alexander Alekhin 7 years ago
commit 2fb4812f6d
  1. 4
      modules/core/src/opencl/cvtclr_dx.cl

@ -92,9 +92,9 @@ void YUV2BGR_NV12_8u(
int x = get_global_id(0);
int y = get_global_id(1);
if (x < cols)
if (x + 1 < cols)
{
if (y < rows)
if (y + 1 < rows)
{
__global uchar* pDstRow1 = pBGR + mad24(y, bgrStep, mad24(x, NCHANNELS, 0));
__global uchar* pDstRow2 = pDstRow1 + bgrStep;

Loading…
Cancel
Save