From bfbb49144c935d35ddcb17929c017c6e2092877e Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 17 May 2021 17:47:07 +0800 Subject: [PATCH] va: h265dec: Use get_profile_from_sps() to recognize the profile. 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: --- sys/va/gstvah265dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/va/gstvah265dec.c b/sys/va/gstvah265dec.c index d30ed2c..94507ef 100644 --- a/sys/va/gstvah265dec.c +++ b/sys/va/gstvah265dec.c @@ -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; -- 2.7.4