From 23619718ed168f4440e69c49b84ce8e198ab8a6b Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Thu, 22 Mar 2012 13:23:11 +0000 Subject: [PATCH] fixing copy/paste typo --- modules/highgui/src/cap_android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_android.cpp b/modules/highgui/src/cap_android.cpp index 0430ae45bd..839694543a 100644 --- a/modules/highgui/src/cap_android.cpp +++ b/modules/highgui/src/cap_android.cpp @@ -491,7 +491,7 @@ bool CvCapture_Android::convertYUV2BGR(int width, int height, const unsigned cha if (m_frameFormat == yuv420sp) cv::cvtColor(src, resmat, inRGBorder ? CV_YUV420sp2RGB : CV_YUV420sp2BGR, withAlpha ? 4 : 3); else if (m_frameFormat == yvu420sp) - cv::cvtColor(src, resmat, inRGBorder ? CV_YUV2RGB_NV12 : CV_YUV2BGR_NV12, withAlpha ? 4 : 3); + cv::cvtColor(src, resmat, inRGBorder ? CV_YUV2RGB_NV21 : CV_YUV2BGR_NV12, withAlpha ? 4 : 3); return !resmat.empty(); }