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

Unified Diff: media/formats/mp4/box_definitions.cc

Issue 1826583003: MSE: Record counts of detected MSE audio, video and text tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: media/formats/mp4/box_definitions.cc
diff --git a/media/formats/mp4/box_definitions.cc b/media/formats/mp4/box_definitions.cc
index a95c78f9d163da7dbd052c74b3690b25cb46e7a3..f425fa9f8c6a0f163bf7150184f48fc87241b721 100644
--- a/media/formats/mp4/box_definitions.cc
+++ b/media/formats/mp4/box_definitions.cc
@@ -461,6 +461,9 @@ bool HandlerReference::Parse(BoxReader* reader) {
type = kVideo;
} else if (hdlr_type == FOURCC_SOUN) {
type = kAudio;
+ } else if (hdlr_type == FOURCC_META || hdlr_type == FOURCC_SUBT ||
wolenetz 2016/03/23 01:45:50 Note, this follows the logic in https://dev.w3.org
chcunningham 2016/03/23 23:05:56 Acknowledged.
+ hdlr_type == FOURCC_TEXT) {
+ type = kText;
} else {
type = kInvalid;
}

Powered by Google App Engine
This is Rietveld 408576698