Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: net/base/mime_util.cc

Issue 11416367: Add Opus decode wrapper to media. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move opus support behind a flag, and add canPlayType support. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index 6ae918b8da068ad1005c6c36cc30814c8c28d5ff..7f04a82fa855a0a7adc2f927cb74ef0a0a29151e 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -308,6 +308,7 @@ static const char* const common_media_codecs[] = {
"theora",
#endif
"vorbis",
+ "opus",
"vp8",
"1" // WAVE_FORMAT_PCM.
};
@@ -407,8 +408,8 @@ struct MediaFormatStrict {
};
static const MediaFormatStrict format_codec_mappings[] = {
- { "video/webm", "vorbis,vp8,vp8.0" },
- { "audio/webm", "vorbis" },
+ { "video/webm", "vorbis,opus,vp8,vp8.0" },
+ { "audio/webm", "vorbis,opus" },
{ "audio/wav", "1" }
};
@@ -796,6 +797,7 @@ static const char* const kStandardAudioTypes[] = {
"audio/mpeg3",
"audio/ogg",
"audio/vorbis",
+ "audio/opus",
"audio/wav",
"audio/webm",
"audio/x-m4a",

Powered by Google App Engine
This is Rietveld 408576698