[client] h264 switch to contrained decoder as baseline is deprecated

This commit is contained in:
Geoffrey McRae 2018-01-01 12:55:43 +11:00
parent 9000fdf6fc
commit bebbdc4089

View File

@ -219,14 +219,27 @@ static bool lgd_h264_initialize(void * opaque, const LG_RendererFormat format, S
VAConfigAttrib attrib; VAConfigAttrib attrib;
attrib.type = VAConfigAttribRTFormat; attrib.type = VAConfigAttribRTFormat;
vaGetConfigAttributes(this->vaDisplay, VAProfileH264Baseline, VAEntrypointVLD, &attrib, 1); vaGetConfigAttributes(
this->vaDisplay,
VAProfileH264ConstrainedBaseline,
VAEntrypointVLD,
&attrib,
1);
if (!(attrib.value & VA_RT_FORMAT_YUV420)) if (!(attrib.value & VA_RT_FORMAT_YUV420))
{ {
DEBUG_ERROR("Failed to find desired YUV420 RT format"); DEBUG_ERROR("Failed to find desired YUV420 RT format");
return false; return false;
} }
status = vaCreateConfig(this->vaDisplay, VAProfileH264Baseline, VAEntrypointVLD, &attrib, 1, &this->vaConfigID); status = vaCreateConfig(
this->vaDisplay,
VAProfileH264ConstrainedBaseline,
VAEntrypointVLD,
&attrib,
1,
&this->vaConfigID);
if (status != VA_STATUS_SUCCESS) if (status != VA_STATUS_SUCCESS)
{ {
DEBUG_ERROR("vaCreateConfig"); DEBUG_ERROR("vaCreateConfig");