mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
pbutils: Use more strict profile checking for hevc
Use the profile_idc value to set the profile string in caps. Don't use compatibility flags for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=747613
This commit is contained in:
parent
955dc5258f
commit
6af56187e8
1 changed files with 3 additions and 8 deletions
|
@ -682,7 +682,6 @@ const gchar *
|
|||
gst_codec_utils_h265_get_profile (const guint8 * profile_tier_level, guint len)
|
||||
{
|
||||
const gchar *profile = NULL;
|
||||
gint gpcf1 = 0, gpcf2 = 0, gpcf3 = 0;
|
||||
gint profile_idc;
|
||||
|
||||
g_return_val_if_fail (profile_tier_level != NULL, NULL);
|
||||
|
@ -694,15 +693,11 @@ gst_codec_utils_h265_get_profile (const guint8 * profile_tier_level, guint len)
|
|||
|
||||
profile_idc = (profile_tier_level[0] & 0x1f);
|
||||
|
||||
gpcf1 = (profile_tier_level[1] & 0x40) >> 6;
|
||||
gpcf2 = (profile_tier_level[1] & 0x20) >> 5;
|
||||
gpcf3 = (profile_tier_level[1] & 0x10) >> 4;
|
||||
|
||||
if (profile_idc == 1 || gpcf1)
|
||||
if (profile_idc == 1)
|
||||
profile = "main";
|
||||
else if (profile_idc == 2 || gpcf2)
|
||||
else if (profile_idc == 2)
|
||||
profile = "main-10";
|
||||
else if (profile_idc == 3 || gpcf3)
|
||||
else if (profile_idc == 3)
|
||||
profile = "main-still-picture";
|
||||
else
|
||||
profile = NULL;
|
||||
|
|
Loading…
Reference in a new issue