diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 00600441..6ed81dc1 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -842,7 +842,7 @@ int PipelineHandlerRPi::configure(Camera *camera,
CameraConfiguration *config)
         * request, and apply it to the sensor with the cached transform, if
         * any.
         */
-       V4L2SubdeviceFormat sensorFormat =
findBestFormat(data->sensorFormats_, rawStream ? sensorSize : maxSize,
bitDepth);
+       V4L2SubdeviceFormat sensorFormat =
