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:
Nicolas Dufresne 2020-08-11 17:15:50 -04:00
parent b18fd0f239
commit 6500a76bfb

View file

@ -711,6 +711,10 @@ gst_codec_utils_h264_get_level (const guint8 * sps, guint len)
return "5.1"; return "5.1";
case 52: case 52:
return "5.2"; return "5.2";
case 61:
return "6.1";
case 62:
return "6.2";
default: default:
return NULL; return NULL;
} }
@ -764,6 +768,12 @@ gst_codec_utils_h264_get_level_idc (const gchar * level)
return 51; return 51;
else if (!strcmp (level, "5.2")) else if (!strcmp (level, "5.2"))
return 52; 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); GST_WARNING ("Invalid level %s", level);
return 0; return 0;