diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 46af776e..c951b49c 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -1270,6 +1270,16 @@ void IPU3CameraData::imguOutputBufferReady(FrameBuffer *buffer)
 
 	Request *request = info->request;
 
+	/*
+	 * The ImgU processes the first frame after starting with parameters
+	 * left over from the previous configuration. After a change of the
+	 * output size, this produces horizontal bars of random colours. Report
+	 * the first frame as an error so that applications drop it.
+	 */
+	if (request->sequence() == 0 &&
+	    buffer->metadata().status == FrameMetadata::FrameSuccess)
+		buffer->_d()->metadata().status = FrameMetadata::FrameError;
+
 	pipe()->completeBuffer(request, buffer);
 
 	request->_d()->metadata().set(controls::draft::PipelineDepth, 3);
