From fc5d9c34a74ee6fc7f533f19e88831e306db698d Mon Sep 17 00:00:00 2001 From: Ian Jamison Date: Tue, 5 Sep 2017 15:29:24 +0100 Subject: [PATCH] v4l2object: Fix colorimetry transfer lookup for 4K video https://bugzilla.gnome.org/show_bug.cgi?id=787160 --- sys/v4l2/gstv4l2object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index af62d6db62..8da5831b7d 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -2057,7 +2057,7 @@ gst_v4l2_object_get_colorspace (struct v4l2_format *fmt, switch (transfer) { case V4L2_XFER_FUNC_709: - if (fmt->fmt.pix.height > 2160) + if (fmt->fmt.pix.height >= 2160) cinfo->transfer = GST_VIDEO_TRANSFER_BT2020_12; else cinfo->transfer = GST_VIDEO_TRANSFER_BT709;