mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
pbutils: Add latest H.264 level values
The spec now list 6, 6.1 and 6.2. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/786>
This commit is contained in:
parent
b18fd0f239
commit
6500a76bfb
1 changed files with 10 additions and 0 deletions
|
@ -711,6 +711,10 @@ gst_codec_utils_h264_get_level (const guint8 * sps, guint len)
|
|||
return "5.1";
|
||||
case 52:
|
||||
return "5.2";
|
||||
case 61:
|
||||
return "6.1";
|
||||
case 62:
|
||||
return "6.2";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
@ -764,6 +768,12 @@ gst_codec_utils_h264_get_level_idc (const gchar * level)
|
|||
return 51;
|
||||
else if (!strcmp (level, "5.2"))
|
||||
return 52;
|
||||
else if (!strcmp (level, "6"))
|
||||
return 60;
|
||||
else if (!strcmp (level, "6.1"))
|
||||
return 61;
|
||||
else if (!strcmp (level, "6.2"))
|
||||
return 62;
|
||||
|
||||
GST_WARNING ("Invalid level %s", level);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue