Bug 1188150 - Instantiate ADTSContainerParser for audio/aac. r=jya
authorRalph Giles <giles@mozilla.com>
Wed, 22 Jul 2015 15:00:21 -0700
changeset 287198 032bfd7a5e7508876be2b7441fba291af99a1653
parent 287197 6b8bc93d561b574770dfc6b1ce6ae5836ffc441d
child 287199 0edf0a39a23cab4c080b8b88e964a495f7078082
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1188150
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1188150 - Instantiate ADTSContainerParser for audio/aac. r=jya
dom/media/mediasource/ContainerParser.cpp
--- a/dom/media/mediasource/ContainerParser.cpp
+++ b/dom/media/mediasource/ContainerParser.cpp
@@ -578,16 +578,20 @@ ContainerParser::CreateForMIMEType(const
   if (aType.LowerCaseEqualsLiteral("video/webm") || aType.LowerCaseEqualsLiteral("audio/webm")) {
     return new WebMContainerParser(aType);
   }
 
 #ifdef MOZ_FMP4
   if (aType.LowerCaseEqualsLiteral("video/mp4") || aType.LowerCaseEqualsLiteral("audio/mp4")) {
     return new MP4ContainerParser(aType);
   }
+  if (aType.LowerCaseEqualsLiteral("audio/aac")) {
+    return new ADTSContainerParser(aType);
+  }
 #endif
+
   return new ContainerParser(aType);
 }
 
 #undef MSE_DEBUG
 #undef MSE_DEBUGV
 
 } // namespace mozilla