va: h265dec: Use get_profile_from_sps() to recognize the profile.
authorHe Junyan <junyan.he@intel.com>
Mon, 17 May 2021 09:47:07 +0000 (17:47 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 25 May 2021 10:11:05 +0000 (12:11 +0200)
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>

sys/va/gstvah265dec.c

index d30ed2c..94507ef 100644 (file)
@@ -865,8 +865,7 @@ static VAProfile
 _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;