From 49a80947f301ed5433010c7675d0ae974c4470b6 Mon Sep 17 00:00:00 2001 From: Divya Jaiswal Date: Mon, 6 Jul 2015 16:49:56 +0200 Subject: v4l2-mfc-example: 0 data length Signed-off-by: Divya Jaiswal Signed-off-by: Mateusz Krawczuk --- v4l2-mfc-example/mfc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'v4l2-mfc-example') diff --git a/v4l2-mfc-example/mfc.c b/v4l2-mfc-example/mfc.c index 75bf8cb..1b535e6 100644 --- a/v4l2-mfc-example/mfc.c +++ b/v4l2-mfc-example/mfc.c @@ -170,6 +170,8 @@ int mfc_dec_queue_buf(struct instance *i, int n, int l1, int l2, int type, qbuf.index = n; qbuf.m.planes = planes; qbuf.length = nplanes; + qbuf.m.planes[0].data_offset = 0; + qbuf.m.planes[1].data_offset = 0; qbuf.m.planes[0].bytesused = l1; qbuf.m.planes[1].bytesused = l2; @@ -213,8 +215,9 @@ int mfc_dec_queue_buf_cap(struct instance *i, int n) int mfc_dec_dequeue_buf(struct instance *i, struct v4l2_buffer *qbuf) { int ret; - + dbg("Preparing ioctl VIDIOC_DQBUF"); ret = ioctl(i->mfc.fd, VIDIOC_DQBUF, qbuf); + dbg("Done ioctl VIDIOC_DQBUF"); if (ret) { err("Failed to dequeue buffer"); -- cgit v1.2.3