From d744aeb5fa41d35f82a4fdbe5b4397335be40f87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 29 Mar 2017 19:20:26 +0200 Subject: [PATCH] libs: encoder: admit YUV420_10BPP as valid chroma Accepts as supported the GST_VAAPI_CHROMA_TYPE_YUV420_10BPP chroma type. https://bugzilla.gnome.org/show_bug.cgi?id=771291 --- gst-libs/gst/vaapi/gstvaapiencoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c index 327e215..0a87c1b 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder.c @@ -568,7 +568,8 @@ is_chroma_type_supported (GstVaapiEncoder * encoder) return TRUE; if (cip->chroma_type != GST_VAAPI_CHROMA_TYPE_YUV420 && - cip->chroma_type != GST_VAAPI_CHROMA_TYPE_YUV422) + cip->chroma_type != GST_VAAPI_CHROMA_TYPE_YUV422 && + cip->chroma_type != GST_VAAPI_CHROMA_TYPE_YUV420_10BPP) goto unsupported; if (!get_config_attribute (encoder, VAConfigAttribRTFormat, &format)) -- 2.7.4