mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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 <[email protected]> Signed-off-by: Kamil Debski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
327eeb3a1a
commit
00684dab28
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue