From fa77b2bf60630bb3fba99d13ea3eb47967939f07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 30 Mar 2018 20:39:18 +0200 Subject: [PATCH] vaapiencode: h264: find best profile in those available Instead to look for the best profile in the allowed profiles by downstream, the encoder should look for the base profile in the available profile in VA-API. https://bugzilla.gnome.org/show_bug.cgi?id=794306 --- gst/vaapi/gstvaapiencode_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapiencode_h264.c b/gst/vaapi/gstvaapiencode_h264.c index 96e6ef5..d4f6433 100644 --- a/gst/vaapi/gstvaapiencode_h264.c +++ b/gst/vaapi/gstvaapiencode_h264.c @@ -334,7 +334,7 @@ gst_vaapiencode_h264_set_config (GstVaapiEncode * base_encode) encode->is_avc = stream_format && strcmp (stream_format, "avc") == 0; /* Check for the largest profile that is supported */ - profile = find_best_profile (allowed_caps); + profile = find_best_profile (available_caps); if (profile != GST_VAAPI_PROFILE_UNKNOWN) { GST_INFO ("using %s profile as target decoder constraints", gst_vaapi_utils_h264_get_profile_string (profile)); -- 2.7.4