summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-03-29 19:20:26 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-04-06 22:00:05 +0200
commitd744aeb5fa41d35f82a4fdbe5b4397335be40f87 (patch)
treeb040181b5ce72a9269effee3231055713f12a70c
parent48e21d6ba88496d0ffb9fa578778c949393225f4 (diff)
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
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c
index 327e2155..0a87c1b3 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))