diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2020-08-11 17:15:50 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2020-08-11 17:15:50 -0400 |
commit | 6500a76bfb126a0fff5c5920356e78c0e66569e9 (patch) | |
tree | 01f0bb30308e8ac112771178a10e6f512ff1c37f | |
parent | b18fd0f239e17ae4daf30eab11033cfbe72fe95d (diff) | |
download | gstreamer-plugins-base-6500a76bfb126a0fff5c5920356e78c0e66569e9.tar.gz |
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>
-rw-r--r-- | gst-libs/gst/pbutils/codec-utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/codec-utils.c b/gst-libs/gst/pbutils/codec-utils.c index fc3b70c41..3d6d30a1f 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -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; |