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

Unified Diff: media/filters/stream_parser_factory.cc

Issue 2773793002: Allow mp3 audio codec for mpeg2ts containers in MSE (Closed)
Patch Set: Created 3 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/filters/stream_parser_factory.cc
diff --git a/media/filters/stream_parser_factory.cc b/media/filters/stream_parser_factory.cc
index 0d71f2ac942807b315a5b98b0ccc36a68f97027d..6cdc97fa6ae8866617e7668bf6524d428efe1e7a 100644
--- a/media/filters/stream_parser_factory.cc
+++ b/media/filters/stream_parser_factory.cc
@@ -298,13 +298,12 @@ static StreamParser* BuildADTSParser(const std::vector<std::string>& codecs,
}
#if BUILDFLAG(ENABLE_MSE_MPEG2TS_STREAM_PARSER)
+static const CodecInfo kMPEG2TS_MP3CodecInfo = {"mp3", CodecInfo::AUDIO, NULL,
wolenetz 2017/03/23 20:17:39 NOT LGTM until resolved: Is "mp3" standardized as
servolk 2017/03/23 23:24:59 Ah, ok, as we've discussed offline, you are right
+ CodecInfo::HISTOGRAM_MP3};
+
static const CodecInfo* kVideoMP2TCodecs[] = {
- &kH264AVC1CodecInfo,
- &kH264AVC3CodecInfo,
- &kMPEG4AACCodecInfo,
- &kMPEG2AACLCCodecInfo,
- NULL
-};
+ &kH264AVC1CodecInfo, &kH264AVC3CodecInfo, &kMPEG2TS_MP3CodecInfo,
+ &kMPEG4AACCodecInfo, &kMPEG2AACLCCodecInfo, NULL};
static StreamParser* BuildMP2TParser(const std::vector<std::string>& codecs,
const scoped_refptr<MediaLog>& media_log) {

Powered by Google App Engine
This is Rietveld 408576698