Skip to content

Commit d328098

Browse files
committed
[GStreamer][EME] Add opus codec support for CENC encrypted contents
https://bugs.webkit.org/show_bug.cgi?id=267529 Reviewed by Philippe Normand. Patch by kkanag314 <krishnapriya_kanagaraj@comcast.com>. * Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp: Canonical link: https://commits.webkit.org/273041@main
1 parent 00a56e0 commit d328098

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ static bool decrypt(WebKitMediaCommonEncryptionDecrypt*, GstBuffer* iv, GstBuffe
4646
GST_DEBUG_CATEGORY(webkitMediaThunderDecryptDebugCategory);
4747
#define GST_CAT_DEFAULT webkitMediaThunderDecryptDebugCategory
4848

49-
static const char* cencEncryptionMediaTypes[] = { "video/mp4", "audio/mp4", "video/x-h264", "video/x-h265", "audio/mpeg", "audio/x-eac3", "audio/x-ac3", "audio/x-flac", "video/x-vp9", nullptr };
49+
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 };
5051
static const char* webmEncryptionMediaTypes[] = { "video/webm", "audio/webm", "video/x-vp9", "audio/x-opus", "audio/x-vorbis", "video/x-vp8", nullptr };
5152

5253
static GstStaticPadTemplate srcTemplate = GST_STATIC_PAD_TEMPLATE("src",

0 commit comments

Comments
 (0)