diff options
-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 03a2c94b9..7ab4f5531 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -702,6 +702,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; } @@ -755,6 +759,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; |