mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2255>
This commit is contained in:
parent
08dc70b6f4
commit
bfbb49144c
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue