From bebbdc408993df716c7efc013145d4ddbe8822fa Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 1 Jan 2018 12:55:43 +1100 Subject: [PATCH] [client] h264 switch to contrained decoder as baseline is deprecated --- client/decoders/h264.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/client/decoders/h264.c b/client/decoders/h264.c index 58c71d2f..6f36c39c 100644 --- a/client/decoders/h264.c +++ b/client/decoders/h264.c @@ -219,14 +219,27 @@ static bool lgd_h264_initialize(void * opaque, const LG_RendererFormat format, S VAConfigAttrib attrib; attrib.type = VAConfigAttribRTFormat; - vaGetConfigAttributes(this->vaDisplay, VAProfileH264Baseline, VAEntrypointVLD, &attrib, 1); + vaGetConfigAttributes( + this->vaDisplay, + VAProfileH264ConstrainedBaseline, + VAEntrypointVLD, + &attrib, + 1); + if (!(attrib.value & VA_RT_FORMAT_YUV420)) { DEBUG_ERROR("Failed to find desired YUV420 RT format"); 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) { DEBUG_ERROR("vaCreateConfig");