summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorMichael Tretter2017-01-20 15:00:23 +0100
committerMauro Carvalho Chehab2017-01-31 11:16:03 +0100
commit7691f821ff19af21b1768d8f347764e61f9f5d2b (patch)
treec3c75d17ede0621a7b091d7d2210cbf145130c71 /drivers/media/platform/coda
parent[media] coda: add debug output about tiling (diff)
downloadkernel-qcow2-linux-7691f821ff19af21b1768d8f347764e61f9f5d2b.tar.gz
kernel-qcow2-linux-7691f821ff19af21b1768d8f347764e61f9f5d2b.tar.xz
kernel-qcow2-linux-7691f821ff19af21b1768d8f347764e61f9f5d2b.zip
[media] coda: fix frame index to returned error
display_idx refers to the frame that will be returned in the next round. The currently processed frame is ctx->display_idx and errors should be reported for this frame. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index b6625047250d..309eb4eb5ad1 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -2057,7 +2057,7 @@ static void coda_finish_decode(struct coda_ctx *ctx)
}
vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload);
- coda_m2m_buf_done(ctx, dst_buf, ctx->frame_errors[display_idx] ?
+ coda_m2m_buf_done(ctx, dst_buf, ctx->frame_errors[ctx->display_idx] ?
VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE);
v4l2_dbg(1, coda_debug, &dev->v4l2_dev,