From 6b4caacd1995fb2d72c09a43ece94daeca9e86f6 Mon Sep 17 00:00:00 2001 From: Diego Nieto Date: Fri, 11 Oct 2024 18:06:38 +0200 Subject: [PATCH] codec-utils: add H.266/vvc mime type Part-of: --- .../gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c index 18f7c92cf9..b7e19fe504 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c @@ -2998,6 +2998,8 @@ gst_codec_utils_caps_get_mime_codec (GstCaps * caps) GST_DEBUG ("h265 caps parsing failed"); mime_codec = g_strdup ("hev1"); } + } else if (g_strcmp0 (media_type, "video/x-h266") == 0) { + mime_codec = g_strdup ("vvc1"); } else if (g_strcmp0 (media_type, "video/x-av1") == 0) { mime_codec = av1_caps_get_mime_codec (caps); } else if (g_strcmp0 (media_type, "video/x-vp8") == 0) { @@ -3165,6 +3167,13 @@ gst_codec_utils_caps_from_mime_codec_single (const gchar * codec) /* FIXME : Extract information from the following component */ break; + } + case GST_MAKE_FOURCC ('v', 'v', 'c', '1'): + case GST_MAKE_FOURCC ('v', 'v', 'i', '1'): + { + /* H.266 */ + caps = gst_caps_new_empty_simple ("video/x-h266"); + break; } /* Following are not defined in rfc 6831 but are registered MP4RA codecs */ case GST_MAKE_FOURCC ('a', 'c', '-', '3'):