summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/mfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-mfc-example/mfc.c')
-rw-r--r--v4l2-mfc-example/mfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/v4l2-mfc-example/mfc.c b/v4l2-mfc-example/mfc.c
index 480e542..6095b99 100644
--- a/v4l2-mfc-example/mfc.c
+++ b/v4l2-mfc-example/mfc.c
@@ -261,6 +261,7 @@ int mfc_dec_setup_capture(struct instance *i, int extra_buf)
}
i->mfc.cap_w = fmt.fmt.pix_mp.width;
i->mfc.cap_h = fmt.fmt.pix_mp.height;
+ i->mfc.cap_pixfmt = fmt.fmt.pix_mp.pixelformat;
i->mfc.cap_buf_size[0] = fmt.fmt.pix_mp.plane_fmt[0].sizeimage;
i->mfc.cap_buf_size[1] = fmt.fmt.pix_mp.plane_fmt[1].sizeimage;