summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2020-07-03 00:53:31 +0800
committerHe Junyan <junyan.he@intel.com>2020-07-30 17:42:49 +0800
commit3554f06235aaee322eaf7f8187ed6c67123e745d (patch)
treeee0cb385b83c1dff4721dacd94c252e521a1531b /gst
parent579aa4cab1910d87c548b195dead6583b3704529 (diff)
downloadgstreamer-vaapi-3554f06235aaee322eaf7f8187ed6c67123e745d.tar.gz
libs: encoder: h265: modify set_max_profile to set_allowed_profiles.
In h265, bigger profile idc may not be compatible with the small profile idc. And more important, there are multi profiles with the same profile idc. Such as main-422-10, main-444 and main-444-10, they all have profile idc 4. So recording the max profile idc is not enough, the encoder needs to know all allowed profiles when deciding the real profile. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/349>
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapiencode_h265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c
index c94d7460..9ee8855e 100644
--- a/gst/vaapi/gstvaapiencode_h265.c
+++ b/gst/vaapi/gstvaapiencode_h265.c
@@ -153,7 +153,7 @@ gst_vaapiencode_h265_set_config (GstVaapiEncode * base_encode)
if (profile) {
GST_INFO ("using %s profile as target decoder constraints",
gst_vaapi_utils_h265_get_profile_string (profile));
- if (!gst_vaapi_encoder_h265_set_max_profile (encoder, profile))
+ if (!gst_vaapi_encoder_h265_set_allowed_profiles (encoder, NULL))
return FALSE;
}
return TRUE;