summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example
diff options
context:
space:
mode:
authorDivya Jaiswal <divya.jswl@samsung.com>2015-07-06 16:49:56 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2015-07-09 15:55:20 +0200
commit49a80947f301ed5433010c7675d0ae974c4470b6 (patch)
tree2bdfeb6d5f74e092c802a515317f97127a2d2108 /v4l2-mfc-example
parent364160b45c3303efba4e225be6ebeec8f09095f9 (diff)
v4l2-mfc-example: 0 data length
Signed-off-by: Divya Jaiswal <divya.jswl@samsung.com> Signed-off-by: Mateusz Krawczuk <m.krawczuk@samsung.com>
Diffstat (limited to 'v4l2-mfc-example')
-rw-r--r--v4l2-mfc-example/mfc.c5
1 files changed, 4 insertions, 1 deletions
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");