diff options
author | Zhaowei Yuan <zhaowei.yuan@samsung.com> | 2014-09-03 22:28:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-26 05:47:45 -0400 |
commit | 00684dab287956573122815bfdc04cb4b4561033 (patch) | |
tree | 52120c003c58917bb199fb56124daf225f8071ca | |
parent | 327eeb3a1a335f2580e72878191ca7a5236797bc (diff) |
[media] s5p_mfc: correct the loop condition
It should take ctx->dst_fmt->num_planes as
the loop condition for CAPTURE.
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index fe4d21ccfd49..9e47b969853b 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | |||
@@ -990,7 +990,7 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb) | |||
990 | if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { | 990 | if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { |
991 | if (ctx->capture_state == QUEUE_BUFS_MMAPED) | 991 | if (ctx->capture_state == QUEUE_BUFS_MMAPED) |
992 | return 0; | 992 | return 0; |
993 | for (i = 0; i <= ctx->src_fmt->num_planes ; i++) { | 993 | for (i = 0; i < ctx->dst_fmt->num_planes; i++) { |
994 | if (IS_ERR_OR_NULL(ERR_PTR( | 994 | if (IS_ERR_OR_NULL(ERR_PTR( |
995 | vb2_dma_contig_plane_dma_addr(vb, i)))) { | 995 | vb2_dma_contig_plane_dma_addr(vb, i)))) { |
996 | mfc_err("Plane mem not allocated\n"); | 996 | mfc_err("Plane mem not allocated\n"); |