Skip to content

Commit e15bff0

Browse files
committed
[GStreamer][EME][Thunder] Add AV1 to the list of supported types to decryptor
https://bugs.webkit.org/show_bug.cgi?id=276065 Reviewed by Philippe Normand. Add AV1 to the decryptor caps. Patch by Eugene Mutavchi <Ievgen_Mutavchi@comcast.com>. * Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp: Canonical link: https://commits.webkit.org/280528@main
1 parent 3fc6679 commit e15bff0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ GST_DEBUG_CATEGORY(webkitMediaThunderDecryptDebugCategory);
4747
#define GST_CAT_DEFAULT webkitMediaThunderDecryptDebugCategory
4848

4949
static const char* cencEncryptionMediaTypes[] = { "video/mp4", "audio/mp4", "video/x-h264", "video/x-h265", "audio/mpeg",
50-
"audio/x-eac3", "audio/x-ac3", "audio/x-flac", "audio/x-opus", "video/x-vp9", nullptr };
51-
static const char* webmEncryptionMediaTypes[] = { "video/webm", "audio/webm", "video/x-vp9", "audio/x-opus", "audio/x-vorbis", "video/x-vp8", nullptr };
50+
"audio/x-eac3", "audio/x-ac3", "audio/x-flac", "audio/x-opus", "video/x-vp9", "video/x-av1", nullptr };
51+
static const char* webmEncryptionMediaTypes[] = { "video/webm", "audio/webm", "video/x-vp9", "video/x-av1", "audio/x-opus", "audio/x-vorbis", "video/x-vp8", nullptr };
5252

5353
static GstStaticPadTemplate srcTemplate = GST_STATIC_PAD_TEMPLATE("src",
5454
GST_PAD_SRC,
@@ -64,7 +64,8 @@ static GstStaticPadTemplate srcTemplate = GST_STATIC_PAD_TEMPLATE("src",
6464
"audio/x-ac3; "
6565
"video/x-h264; "
6666
"video/x-h265; "
67-
"video/x-vp9; video/x-vp8;"
67+
"video/x-vp9; video/x-vp8; "
68+
"video/x-av1; "
6869
"audio/x-opus; audio/x-vorbis"));
6970

7071
#define webkit_media_thunder_decrypt_parent_class parent_class

0 commit comments

Comments
 (0)