Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00684dab authored by Zhaowei Yuan's avatar Zhaowei Yuan Committed by Mauro Carvalho Chehab
Browse files

[media] s5p_mfc: correct the loop condition



It should take ctx->dst_fmt->num_planes as
the loop condition for CAPTURE.

Signed-off-by: default avatarZhaowei Yuan <zhaowei.yuan@samsung.com>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 327eeb3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -990,7 +990,7 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb)
	if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
		if (ctx->capture_state == QUEUE_BUFS_MMAPED)
			return 0;
		for (i = 0; i <= ctx->src_fmt->num_planes ; i++) {
		for (i = 0; i < ctx->dst_fmt->num_planes; i++) {
			if (IS_ERR_OR_NULL(ERR_PTR(
					vb2_dma_contig_plane_dma_addr(vb, i)))) {
				mfc_err("Plane mem not allocated\n");