From 24db635c4689291ae350d0c940b30ba7203dc5b7 Mon Sep 17 00:00:00 2001 From: Nikhil Devshatwar Date: Mon, 3 Aug 2015 10:38:19 +0530 Subject: [PATCH] vpe: Correct the colorspace field Correct the colorspace field Fix the build error Fixes: (562a2c8d "vpe: Pass correct colorspace to s_fmt ioctl") Signed-off-by: Nikhil Devshatwar --- util/vpe-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/vpe-common.c b/util/vpe-common.c index 048de7c..3383086 100755 --- a/util/vpe-common.c +++ b/util/vpe-common.c @@ -336,7 +336,7 @@ int vpe_input_init(struct vpe *vpe) fmt.fmt.pix_mp.width = vpe->src.width; fmt.fmt.pix_mp.height = vpe->src.height; fmt.fmt.pix_mp.pixelformat = vpe->src.fourcc; - fmt.fmt.pix_mp.colorspace = vpe->src.clrspc; + fmt.fmt.pix_mp.colorspace = vpe->src.colorspace; switch (vpe->deint) { case 1: @@ -412,7 +412,7 @@ int vpe_output_init(struct vpe *vpe) fmt.fmt.pix_mp.height = vpe->dst.height; fmt.fmt.pix_mp.pixelformat = vpe->dst.fourcc; fmt.fmt.pix_mp.field = V4L2_FIELD_ANY; - fmt.fmt.pix_mp.colorspace = vpe->dst.clrspc; + fmt.fmt.pix_mp.colorspace = vpe->dst.colorspace; ret = ioctl(vpe->fd, VIDIOC_S_FMT, &fmt); if (ret < 0) -- 2.26.2