libs: utils: h265: Use get_profile_from_sps to get profile.
authorHe Junyan <junyan.he@intel.com>
Thu, 17 Sep 2020 07:35:11 +0000 (15:35 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Fri, 30 Oct 2020 07:24:44 +0000 (07:24 +0000)
We now use gst_h265_get_profile_from_sps() to replace the old way
of gst_h265_profile_tier_level_get_profile() to get more precise
profile. The new function consider the unstandard cases and give
a more suitable profile decision.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/395>

gst-libs/gst/vaapi/gstvaapiutils_h265.c

index b912075..189f256 100644 (file)
@@ -146,7 +146,7 @@ gst_vaapi_utils_h265_get_profile (GstH265SPS * sps)
 
   g_return_val_if_fail (sps != NULL, GST_VAAPI_PROFILE_UNKNOWN);
 
-  profile = gst_h265_profile_tier_level_get_profile (&sps->profile_tier_level);
+  profile = gst_h265_get_profile_from_sps (sps);
   switch (profile) {
     case GST_H265_PROFILE_MAIN:
       /* Main Intra, recognize it as MAIN */