From 16712bad933b45faac1075a8b58f09f06bc43082 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Mon, 16 May 2011 15:10:44 +0000 Subject: [PATCH] minor bugfix --- modules/highgui/src/cap_android.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/cap_android.cpp b/modules/highgui/src/cap_android.cpp index 4f4296b4fd..8f82e39a3b 100644 --- a/modules/highgui/src/cap_android.cpp +++ b/modules/highgui/src/cap_android.cpp @@ -525,9 +525,9 @@ bool CvCapture_Android::convertYUV420i2BGR888(int width, int height, const unsig unsigned char* uv = y1 + width * height; if (inRGBorder) - cv::parallel_for(cv::BlockedRange(0, height, 2), YUV420i2BGR888Invoker<0>(resmat, width, y1, uv)); - else cv::parallel_for(cv::BlockedRange(0, height, 2), YUV420i2BGR888Invoker<2>(resmat, width, y1, uv)); + else + cv::parallel_for(cv::BlockedRange(0, height, 2), YUV420i2BGR888Invoker<0>(resmat, width, y1, uv)); return !resmat.empty(); }