The function of gst_h265_get_profile_from_sps() is better than the
function gst_h265_profile_tier_level_get_profile() when we recognize
the profile of the stream, becaue it considers the compatibility.
It is also used by h265parse to recognize the profile. So it is
better to keep the same behaviour with the parse and other decoders.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2255>
_get_profile (GstVaH265Dec * self, const GstH265SPS * sps, gint max_dpb_size)
{
GstVaBaseDec *base = GST_VA_BASE_DEC (self);
- GstH265Profile profile =
- gst_h265_profile_tier_level_get_profile (&sps->profile_tier_level);
+ GstH265Profile profile = gst_h265_get_profile_from_sps ((GstH265SPS *) sps);
VAProfile profiles[4];
gint i = 0, j;