libs: encoder: admit YUV420_10BPP as valid chroma
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 29 Mar 2017 17:20:26 +0000 (19:20 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 6 Apr 2017 20:00:05 +0000 (22:00 +0200)
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

index 327e215..0a87c1b 100644 (file)
@@ -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))