From 8a94ae75a86beabee37e63a191be610353df713b Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sun, 29 Jan 2023 14:26:27 +0100 Subject: fixup! libcamera: imx8-isi: Break out YUV format selection --- src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp index dff54d9f..75faa95b 100644 --- a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp +++ b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp @@ -269,12 +269,11 @@ unsigned int ISICameraData::getYuvMediaBusFormat(PixelFormat *pixelFormat) const }; std::sort(mbusCodes.begin(), mbusCodes.end()); - std::sort(yuvCodes.begin(), mbusCodes.end()); + std::sort(yuvCodes.begin(), yuvCodes.end()); std::set_intersection(mbusCodes.begin(), mbusCodes.end(), yuvCodes.begin(), yuvCodes.end(), std::back_inserter(supportedCodes)); - if (supportedCodes.empty()) { LOG(ISI, Warning) << "Cannot find a supported YUV/RGB format"; *pixelFormat = {}; -- cgit v1.2.1