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

Unified Diff: media/formats/mp2t/mp2t_stream_parser.cc

Issue 2773793002: Allow mp3 audio codec for mpeg2ts containers in MSE (Closed)
Patch Set: CR feedback 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
« no previous file with comments | « media/filters/stream_parser_factory.cc ('k') | media/test/data/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/mp2t_stream_parser.cc
diff --git a/media/formats/mp2t/mp2t_stream_parser.cc b/media/formats/mp2t/mp2t_stream_parser.cc
index 615f5c46e19138cdeae0ac382aefc49da2625517..eea80da84e954df4687cb7a0db20729c7f28d31d 100644
--- a/media/formats/mp2t/mp2t_stream_parser.cc
+++ b/media/formats/mp2t/mp2t_stream_parser.cc
@@ -48,6 +48,8 @@ const int64_t kSampleAESPrivateDataIndicatorAAC = 0x61616364;
enum StreamType {
// ISO-13818.1 / ITU H.222 Table 2.34 "Stream type assignments"
kStreamTypeMpeg1Audio = 0x3,
+ // ISO/IEC 13818-3 Audio (MPEG-2)
+ kStreamTypeMpeg2Audio = 0x4,
kStreamTypeAAC = 0xf,
kStreamTypeAVC = 0x1b,
#if BUILDFLAG(ENABLE_HLS_SAMPLE_AES)
@@ -421,7 +423,8 @@ void Mp2tStreamParser::RegisterPes(int pmt_pid,
pes_pid),
sbr_in_mimetype_));
is_audio = true;
- } else if (stream_type == kStreamTypeMpeg1Audio) {
+ } else if (stream_type == kStreamTypeMpeg1Audio ||
+ stream_type == kStreamTypeMpeg2Audio) {
es_parser.reset(new EsParserMpeg1Audio(
base::Bind(&Mp2tStreamParser::OnAudioConfigChanged,
base::Unretained(this), pes_pid),
« no previous file with comments | « media/filters/stream_parser_factory.cc ('k') | media/test/data/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698