mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue