[arch-commits] Commit in firefox/trunk (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Dec 21 08:03:02 UTC 2015


    Date: Monday, December 21, 2015 @ 09:03:02
  Author: foutrelis
Revision: 257058

upgpkg: firefox 43.0.1-2

Fix a couple issues related to video playback.

Added:
  firefox/trunk/firefox-disable-GMP-PDM.patch
  firefox/trunk/firefox-support-YUV420J-pixel-format.patch
Modified:
  firefox/trunk/PKGBUILD

--------------------------------------------+
 PKGBUILD                                   |   12 ++++++++-
 firefox-disable-GMP-PDM.patch              |   34 +++++++++++++++++++++++++++
 firefox-support-YUV420J-pixel-format.patch |   34 +++++++++++++++++++++++++++
 3 files changed, 79 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-21 04:49:20 UTC (rev 257057)
+++ PKGBUILD	2015-12-21 08:03:02 UTC (rev 257058)
@@ -4,7 +4,7 @@
 
 pkgname=firefox
 pkgver=43.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Standalone web browser from mozilla.org"
 arch=('i686' 'x86_64')
 license=('MPL' 'GPL' 'LGPL')
@@ -26,6 +26,8 @@
         firefox.desktop
         firefox-install-dir.patch
         vendor.js
+        firefox-disable-GMP-PDM.patch
+        firefox-support-YUV420J-pixel-format.patch
         firefox-fixed-loading-icon.png)
 sha256sums=('b1f9173c6ddbd2bf868d94a815fde364bc37aa46a00981903fd1fe86a8f873d8'
             '0a6968180eba6d66b549cebb4106540280600614e91a72a95955e739d4b75fb9'
@@ -32,6 +34,8 @@
             'c202e5e18da1eeddd2e1d81cb3436813f11e44585ca7357c4c5f1bddd4bec826'
             'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd'
             '4b50e9aec03432e21b44d18c4c97b2630bace606b033f7d556c9d3e3eb0f4fa4'
+            'fb1f631363c9b50c8246a0d8738c40570717b3e15b5457dacad9f447449d7e92'
+            '4a949e5b4281be4df0bece8087ecad0a3debb4828efc6a587bd3bd931ab70c94'
             '68e3a5b47c6d175cc95b98b069a15205f027cab83af9e075818d38610feb6213')
 validpgpkeys=('2B90598A745E992F315E22C58AB132963A06537A')
 
@@ -53,6 +57,12 @@
 prepare() {
   cd $pkgname-$pkgver
 
+  # https://bugzilla.mozilla.org/show_bug.cgi?id=1233429
+  patch -Np1 -i ../firefox-disable-GMP-PDM.patch
+
+  # https://bugzilla.mozilla.org/show_bug.cgi?id=1233340
+  patch -Np1 -i ../firefox-support-YUV420J-pixel-format.patch
+
   cp ../mozconfig .mozconfig
   patch -Np1 -i ../firefox-install-dir.patch
 

Added: firefox-disable-GMP-PDM.patch
===================================================================
--- firefox-disable-GMP-PDM.patch	                        (rev 0)
+++ firefox-disable-GMP-PDM.patch	2015-12-21 08:03:02 UTC (rev 257058)
@@ -0,0 +1,34 @@
+# HG changeset patch
+# User Jean-Yves Avenard <jyavenard at mozilla.com>
+
+Bug 1233429: Disable GMP PDM. r=cpearce
+
+Prevent users from shooting themselves in the foot by turning some prefs on.
+
+diff --git a/dom/media/platforms/PlatformDecoderModule.cpp b/dom/media/platforms/PlatformDecoderModule.cpp
+index 530c7b9..50933ca 100644
+--- a/dom/media/platforms/PlatformDecoderModule.cpp
++++ b/dom/media/platforms/PlatformDecoderModule.cpp
+@@ -150,20 +150,22 @@ PlatformDecoderModule::Create()
+   }
+   return CreateAgnosticDecoderModule();
+ }
+ 
+ /* static */
+ already_AddRefed<PlatformDecoderModule>
+ PlatformDecoderModule::CreatePDM()
+ {
++#ifndef RELEASE_BUILD
+   if (sGMPDecoderEnabled) {
+     nsRefPtr<PlatformDecoderModule> m(new GMPDecoderModule());
+     return m.forget();
+   }
++#endif
+ #ifdef MOZ_WIDGET_ANDROID
+   if(sAndroidMCDecoderPreferred && sAndroidMCDecoderEnabled){
+     nsRefPtr<PlatformDecoderModule> m(new AndroidDecoderModule());
+     return m.forget();
+   }
+ #endif
+   if (sUseBlankDecoder) {
+     return CreateBlankDecoderModule();

Added: firefox-support-YUV420J-pixel-format.patch
===================================================================
--- firefox-support-YUV420J-pixel-format.patch	                        (rev 0)
+++ firefox-support-YUV420J-pixel-format.patch	2015-12-21 08:03:02 UTC (rev 257058)
@@ -0,0 +1,34 @@
+
+# HG changeset patch
+# User Jean-Yves Avenard <jyavenard at mozilla.com>
+# Date 1450657258 -39600
+# Node ID 8b0ced62c1957f6da6028af686c32ada1ccb570c
+# Parent  e1a98377eb38679bda820456ee6d20bdc17eaa8e
+Bug 1233340: [ffmpeg] Support YUV420J pixel format. r=kentuckyfriedtakahe
+
+YUV420J is 12bpp YUV420P.
+
+
+diff --git a/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp
+--- a/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp
++++ b/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp
+@@ -52,17 +52,17 @@ FFmpegDataDecoder<LIBAV_VER>::~FFmpegDat
+  * For now, we just look for YUV420P as it is the only non-HW accelerated format
+  * supported by FFmpeg's H264 decoder.
+  */
+ static PixelFormat
+ ChoosePixelFormat(AVCodecContext* aCodecContext, const PixelFormat* aFormats)
+ {
+   FFMPEG_LOG("Choosing FFmpeg pixel format for video decoding.");
+   for (; *aFormats > -1; aFormats++) {
+-    if (*aFormats == PIX_FMT_YUV420P) {
++    if (*aFormats == PIX_FMT_YUV420P || *aFormats == PIX_FMT_YUVJ420P) {
+       FFMPEG_LOG("Requesting pixel format YUV420P.");
+       return PIX_FMT_YUV420P;
+     }
+   }
+ 
+   NS_WARNING("FFmpeg does not share any supported pixel formats.");
+   return PIX_FMT_NONE;
+ }
+



More information about the arch-commits mailing list