Bug 761063 - Add avc1.42001E (used by youtube) to the list of supported h264 codecs r=doublec
authorAlessandro Decina <alessandro.d@gmail.com>
Fri, 06 Jul 2012 14:11:29 -0700
changeset 103367 422eef4412e33d131324059cbe1eae90c7e052b1
parent 103366 6a068ea399237ebd2484ce775b3586d060fd7edd
child 103368 7f63483c6157bb0e7e3b3be2e758ae50d35687bd
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoublec
bugs761063
milestone16.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 761063 - Add avc1.42001E (used by youtube) to the list of supported h264 codecs r=doublec
content/html/content/public/nsHTMLMediaElement.h
content/html/content/src/nsHTMLMediaElement.cpp
--- a/content/html/content/public/nsHTMLMediaElement.h
+++ b/content/html/content/public/nsHTMLMediaElement.h
@@ -293,17 +293,17 @@ public:
   static const char gWebMTypes[2][17];
   static char const *const gWebMCodecs[4];
 #endif
 
 #ifdef MOZ_GSTREAMER
   static bool IsH264Enabled();
   static bool IsH264Type(const nsACString& aType);
   static const char gH264Types[3][17];
-  static char const *const gH264Codecs[6];
+  static char const *const gH264Codecs[7];
 #endif
 
 #ifdef MOZ_MEDIA_PLUGINS
   static bool IsMediaPluginsEnabled();
   static bool IsMediaPluginsType(const nsACString& aType);
 #endif
 
   /**
--- a/content/html/content/src/nsHTMLMediaElement.cpp
+++ b/content/html/content/src/nsHTMLMediaElement.cpp
@@ -2076,18 +2076,19 @@ nsHTMLMediaElement::IsWebMType(const nsA
 
 #ifdef MOZ_GSTREAMER
 const char nsHTMLMediaElement::gH264Types[3][17] = {
   "video/mp4",
   "video/3gpp",
   "video/quicktime",
 };
 
-char const *const nsHTMLMediaElement::gH264Codecs[6] = {
+char const *const nsHTMLMediaElement::gH264Codecs[7] = {
   "avc1.42E01E",
+  "avc1.42001E",
   "avc1.58A01E",
   "avc1.4D401E",
   "avc1.64001E",
   "mp4a.40.2",
   nsnull
 };
 
 bool