From 09401d83ffffe08bc4464b231c13b7fd1700141a Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Fri, 6 Jul 2012 14:11:29 -0700 Subject: [PATCH] Bug 761063 - Add avc1.42001E (used by youtube) to the list of supported h264 codecs r=doublec --- content/html/content/public/nsHTMLMediaElement.h | 2 +- content/html/content/src/nsHTMLMediaElement.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content/html/content/public/nsHTMLMediaElement.h b/content/html/content/public/nsHTMLMediaElement.h index 8d73d075e48..473307f3a3e 100644 --- a/content/html/content/public/nsHTMLMediaElement.h +++ b/content/html/content/public/nsHTMLMediaElement.h @@ -298,7 +298,7 @@ public: 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 diff --git a/content/html/content/src/nsHTMLMediaElement.cpp b/content/html/content/src/nsHTMLMediaElement.cpp index f797733bac5..0670470a66e 100644 --- a/content/html/content/src/nsHTMLMediaElement.cpp +++ b/content/html/content/src/nsHTMLMediaElement.cpp @@ -2081,8 +2081,9 @@ const char nsHTMLMediaElement::gH264Types[3][17] = { "video/quicktime", }; -char const *const nsHTMLMediaElement::gH264Codecs[6] = { +char const *const nsHTMLMediaElement::gH264Codecs[7] = { "avc1.42E01E", + "avc1.42001E", "avc1.58A01E", "avc1.4D401E", "avc1.64001E",