From 2d95089a8d35a4a8ff5b04ec08a151f43196c2b4 Mon Sep 17 00:00:00 2001 From: "Wang,Fei" Date: Sat, 28 Apr 2018 16:10:46 +0800 Subject: [PATCH] vaapih264dec: add constrained and progressive profiles Those profiles have been added in the version 2012-01 and 2011-06 of the AVC spec (A.2.4.1 and A.2.4.2). Both are supported by VAProfileH264High https://bugzilla.gnome.org/show_bug.cgi?id=795624 --- gst/vaapi/gstvaapidecode.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index d11b80325e..b4a531b048 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -1271,6 +1271,13 @@ gst_vaapidecode_ensure_allowed_sinkpad_caps (GstVaapiDecode * decode) have_high |= profile == GST_VAAPI_PROFILE_H264_HIGH; } + if (have_high) { + allowed_sinkpad_caps = + add_h264_profile_in_caps (allowed_sinkpad_caps, "progressive-high"); + allowed_sinkpad_caps = + add_h264_profile_in_caps (allowed_sinkpad_caps, "constrained-high"); + } + if (base_only && (!have_mvc || !have_svc) && have_high) { if (!have_mvc) { GST_DEBUG ("base_only: force adding MVC profiles in caps");