summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");