summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/imx8-isi/imx8-isi.cpp3
1 files changed, 1 insertions, 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 = {};