summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2020-09-17 15:35:11 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2020-10-30 07:24:44 +0000
commitd72f8180295088690ead7fd1c2ed6d0294c74e51 (patch)
tree33fd734ff1b3db7e658550bb13add774d564e3c2 /gst-libs/gst
parent865a46b193e7e83030f2c73e8366e4240ae26551 (diff)
libs: utils: h265: Use get_profile_from_sps to get profile.
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>
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiutils_h265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiutils_h265.c b/gst-libs/gst/vaapi/gstvaapiutils_h265.c
index b9120757..189f256e 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_h265.c
@@ -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 */