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
This commit is contained in:
parent
966d4d0476
commit
fa77b2bf60
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user