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

Unified Diff: net/base/mime_util.h

Issue 254983006: Fix: Adding list of supported codecs for MP4 containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months 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.h
diff --git a/net/base/mime_util.h b/net/base/mime_util.h
index 9662e9656e397de2d48adedbfae590a3249ff4a7..b042390c676de8362da357f3a43940a98c41a413 100644
--- a/net/base/mime_util.h
+++ b/net/base/mime_util.h
@@ -85,6 +85,14 @@ NET_EXPORT bool IsSupportedStrictMediaMimeType(
const std::string& mime_type,
const std::vector<std::string>& codecs);
+// Check to see if the particular mp4 MIME type is in our list which only
+// supports certain subset of H.264 codecs. Returns true if and only if all the
+// codecs are supported for the specific MIME type and the codecs are RFC6381
+// compliant.
+NET_EXPORT bool IsSupportedStrictMP4MediaMimeType(
+ const std::string& mime_type,
+ const std::vector<std::string>& codecs);
+
// Get the extensions associated with the given mime type. This should be passed
// in lower case. There could be multiple extensions for a given mime type, like
// "html,htm" for "text/html", or "txt,text,html,..." for "text/*".

Powered by Google App Engine
This is Rietveld 408576698