[arch-commits] Commit in gst-plugins-ugly/trunk (2 files)

Jan Steffens heftig at archlinux.org
Thu Aug 16 13:08:33 UTC 2018


    Date: Thursday, August 16, 2018 @ 13:08:33
  Author: heftig
Revision: 331590

1.14.2-3

Added:
  gst-plugins-ugly/trunk/0001-x264enc-Set-bit-depth-for-x264-153.patch
Modified:
  gst-plugins-ugly/trunk/PKGBUILD

-----------------------------------------------+
 0001-x264enc-Set-bit-depth-for-x264-153.patch |   31 ++++++++++++++++++++++++
 PKGBUILD                                      |   11 ++++++--
 2 files changed, 39 insertions(+), 3 deletions(-)

Added: 0001-x264enc-Set-bit-depth-for-x264-153.patch
===================================================================
--- 0001-x264enc-Set-bit-depth-for-x264-153.patch	                        (rev 0)
+++ 0001-x264enc-Set-bit-depth-for-x264-153.patch	2018-08-16 13:08:33 UTC (rev 331590)
@@ -0,0 +1,31 @@
+From 04e4b3aebf592abf24c07c5e56bcbb18ba04c30b Mon Sep 17 00:00:00 2001
+Message-Id: <04e4b3aebf592abf24c07c5e56bcbb18ba04c30b.1534424269.git.jan.steffens at gmail.com>
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Thu, 16 Aug 2018 13:17:58 +0200
+Subject: [PATCH] =?UTF-8?q?x264enc:=20Set=20bit=20depth=20for=20x264=20?=
+ =?UTF-8?q?=E2=89=A5=20153?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ ext/x264/gstx264enc.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
+index f88cfcb7..9e7986ab 100644
+--- a/ext/x264/gstx264enc.c
++++ b/ext/x264/gstx264enc.c
+@@ -1578,6 +1578,9 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
+   }
+ 
+   /* set up encoder parameters */
++#if X264_BUILD >= 153
++  encoder->x264param.i_bitdepth = GST_VIDEO_INFO_COMP_DEPTH (info, 0);
++#endif
+   encoder->x264param.i_csp =
+       gst_x264_enc_gst_to_x264_video_format (info->finfo->format, NULL);
+   if (info->fps_d == 0 || info->fps_n == 0) {
+-- 
+2.18.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-16 13:03:16 UTC (rev 331589)
+++ PKGBUILD	2018-08-16 13:08:33 UTC (rev 331590)
@@ -4,7 +4,7 @@
 
 pkgname=gst-plugins-ugly
 pkgver=1.14.2
-pkgrel=2
+pkgrel=3
 pkgdesc="GStreamer Multimedia Framework Ugly Plugins"
 url="https://gstreamer.freedesktop.org/"
 arch=(x86_64)
@@ -14,9 +14,11 @@
 makedepends=(python gtk-doc autoconf-archive git)
 _commit=df1bcfa0ba57859eb39610ef53f1eb744ca57465  # tags/1.14.2^0
 source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly#commit=$_commit"
-        "gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common")
+        "gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common"
+        0001-x264enc-Set-bit-depth-for-x264-153.patch)
 sha256sums=('SKIP'
-            'SKIP')
+            'SKIP'
+            'bff7a355de976a3d19b8e6e2f8f15ccb1dacda95679ec1eee7bd98246f5e3a71')
 
 pkgver() {
   cd $pkgname
@@ -26,6 +28,9 @@
 prepare() {
   cd $pkgname
 
+  # x264 multi-bit-depth fix
+  patch -Np1 -i ../0001-x264enc-Set-bit-depth-for-x264-153.patch
+
   git submodule init
   git config --local submodule.common.url "$srcdir/gst-common"
   git submodule update



More information about the arch-commits mailing list