Github messages for voidlinux
 help / color / mirror / Atom feed
From: 1is7ac3 <1is7ac3@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] X265, ffmpeg and libheif: update
Date: Thu, 06 Feb 2025 05:16:40 +0100	[thread overview]
Message-ID: <20250206041641.5484E21CED@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-54056@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

There is an updated pull request by 1is7ac3 against master on the void-packages repository

https://github.com/1is7ac3/void-packages x265
https://github.com/void-linux/void-packages/pull/54056

X265, ffmpeg and libheif: update
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (X86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
<!--  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/54056.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-54056.patch --]
[-- Type: text/x-diff, Size: 24178 bytes --]

From ce55da0c8721e963b938ec800c6943b74ab7fc76 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 16:13:06 -0300
Subject: [PATCH 01/10] x265: update to 4.0.

---
 common/shlibs                                 |  2 +-
 .../x265/patches/handbrake-ambientlight.patch | 50 +++++++++----------
 srcpkgs/x265/template                         | 28 +++++------
 3 files changed, 38 insertions(+), 42 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index d402931a0fe9a4..5839a46bff8923 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1953,7 +1953,7 @@ libQt5TextToSpeech.so.5 qt5-speech-5.15.2_3
 libQt5Bodymovin.so.5 qt5-lottie-5.15.2_3
 libQt5WebKit.so.5 qt5-webkit-5.6.0_1
 libQt5WebKitWidgets.so.5 qt5-webkit-5.6.0_1
-libx265.so.209 x265-3.6_1
+libx265.so.212 x265-4.0_1
 libQt5Xdg.so.3 libqt5xdg-3.2.0_1
 libQt5XdgIconLoader.so.3 libqt5xdg-3.2.0_1
 libQt6Xdg.so.4 libqtxdg-4.0.0_1
diff --git a/srcpkgs/x265/patches/handbrake-ambientlight.patch b/srcpkgs/x265/patches/handbrake-ambientlight.patch
index ab36a9c35c9de4..5c966e42f0c373 100644
--- a/srcpkgs/x265/patches/handbrake-ambientlight.patch
+++ b/srcpkgs/x265/patches/handbrake-ambientlight.patch
@@ -1,8 +1,7 @@
-diff --git a/source/common/param.cpp b/source/common/param.cpp
-index 8c32fafa2..0b56235c9 100755
---- a/source/common/param.cpp
-+++ b/source/common/param.cpp
-@@ -378,6 +378,7 @@ void x265_param_default(x265_param* param)
+diff -ru a/source/common/param.cpp b/source/common/param.cpp
+--- a/source/common/param.cpp	2024-09-13 09:51:43.000000000 -0300
++++ b/source/common/param.cpp	2025-02-03 13:27:31.474334833 -0300
+@@ -380,6 +380,7 @@
      param->preferredTransferCharacteristics = -1;
      param->pictureStructure = -1;
      param->bEmitCLL = 1;
@@ -10,7 +9,7 @@ index 8c32fafa2..0b56235c9 100755
  
      param->bEnableFrameDuplication = 0;
      param->dupThreshold = 70;
-@@ -1880,6 +1881,7 @@ int x265_check_params(x265_param* param)
+@@ -1929,6 +1930,7 @@
                       || param->bEmitIDRRecoverySEI
                     || !!param->interlaceMode
                       || param->preferredTransferCharacteristics > 1
@@ -18,7 +17,7 @@ index 8c32fafa2..0b56235c9 100755
                       || param->toneMapFile
                       || param->naluFile);
  
-@@ -2766,6 +2768,10 @@ void x265_copy_params(x265_param* dst, x265_param* src)
+@@ -2850,6 +2852,10 @@
      dst->bEmitCLL = src->bEmitCLL;
      dst->maxCLL = src->maxCLL;
      dst->maxFALL = src->maxFALL;
@@ -29,11 +28,10 @@ index 8c32fafa2..0b56235c9 100755
      dst->log2MaxPocLsb = src->log2MaxPocLsb;
      dst->bEmitVUIHRDInfo = src->bEmitVUIHRDInfo;
      dst->bEmitVUITimingInfo = src->bEmitVUITimingInfo;
-diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
-index 5950f87e9..545283474 100644
---- a/source/encoder/encoder.cpp
-+++ b/source/encoder/encoder.cpp
-@@ -3276,6 +3276,15 @@ void Encoder::getStreamHeaders(NALList& list, Entropy& sbacCoder, Bitstream& bs)
+diff -ru a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
+--- a/source/encoder/encoder.cpp	2024-09-13 09:51:43.000000000 -0300
++++ b/source/encoder/encoder.cpp	2025-02-03 13:28:37.551336750 -0300
+@@ -3423,6 +3423,15 @@
          }
      }
  
@@ -49,11 +47,10 @@ index 5950f87e9..545283474 100644
      if (m_param->bEmitInfoSEI)
      {
          char *opts = x265_param2string(m_param, m_sps.conformanceWindow.rightOffset, m_sps.conformanceWindow.bottomOffset);
-diff --git a/source/encoder/sei.h b/source/encoder/sei.h
-index 03e210639..712e4efb4 100644
---- a/source/encoder/sei.h
-+++ b/source/encoder/sei.h
-@@ -242,6 +242,25 @@ public:
+diff -ru a/source/encoder/sei.h b/source/encoder/sei.h
+--- a/source/encoder/sei.h	2024-09-13 09:51:43.000000000 -0300
++++ b/source/encoder/sei.h	2025-02-03 13:30:41.386953402 -0300
+@@ -464,6 +464,25 @@
      }
  };
  
@@ -79,19 +76,18 @@ index 03e210639..712e4efb4 100644
  class SEIDecodedPictureHash : public SEI
  {
  public:
-diff --git a/source/x265.h b/source/x265.h
-index 9f3abd9d9..b6a4d3fe1 100644
---- a/source/x265.h
-+++ b/source/x265.h
-@@ -371,6 +371,7 @@ typedef enum
+diff -ru a/source/x265.h b/source/x265.h
+--- a/source/x265.h	2024-09-13 09:51:43.000000000 -0300
++++ b/source/x265.h	2025-02-03 13:32:46.662499030 -0300
+@@ -371,6 +371,7 @@
      MASTERING_DISPLAY_INFO               = 137,
      CONTENT_LIGHT_LEVEL_INFO             = 144,
      ALTERNATIVE_TRANSFER_CHARACTERISTICS = 147,
 +    AMBIENT_VIEWING_ENVIRONMENT          = 148,
- } SEIPayloadType;
- 
- typedef struct x265_sei_payload
-@@ -1903,6 +1904,11 @@ typedef struct x265_param
+     ALPHA_CHANNEL_INFO                   = 165,
+     THREE_DIMENSIONAL_REFERENCE_DISPLAYS_INFO = 176,
+     MULTIVIEW_SCENE_INFO                 = 178,
+@@ -1956,6 +1957,11 @@
       * value to that value. */
      uint16_t maxLuma;
  
@@ -103,7 +99,7 @@ index 9f3abd9d9..b6a4d3fe1 100644
      /* Maximum of the picture order count */
      int log2MaxPocLsb;
  
-@@ -2114,6 +2120,9 @@ typedef struct x265_param
+@@ -2167,6 +2173,9 @@
      /*Emit content light level info SEI*/
      int         bEmitCLL;
  
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 7991e00bac7642..81ffbd521ca957 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,6 +1,6 @@
 # Template file for 'x265'
 pkgname=x265
-version=3.6
+version=4.0
 revision=1
 build_wrksrc=source
 build_style=cmake
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://x265.org/"
 distfiles="https://bitbucket.org/multicoreware/x265_git/get/${version}.tar.gz"
-checksum=206329b9599c78d06969a1b7b7bb939f7c99a459ab283b2e93f76854bd34ca7b
+checksum=66b64be4b316362fdadb33ad8273a74236042cc380691bdbec42946b0437a389
 
 build_options="altivec assembly"
 
@@ -22,28 +22,28 @@ case "$XBPS_TARGET_MACHINE" in
 	ppc64le*) build_options_default="altivec" ;;
 	# on ARM, enabling it currently fails with undefined reference to
 	# x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)
-	x86_64*|i686*) build_options_default="assembly" ;;
+	x86_64* | i686*) build_options_default="assembly" ;;
 	*) ;;
 esac
 
 if [ "$build_option_assembly" ]; then
 	case "$XBPS_TARGET_MACHINE" in
-		x86_64*|i686*)
-			# see https://bitbucket.org/multicoreware/x265_git/issues/559
-			configure_args+=" -DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy"
-			hostmakedepends+=" nasm"
-			;;
-		*) ;;
+	x86_64* | i686*)
+		# see https://bitbucket.org/multicoreware/x265_git/issues/559
+		configure_args+=" -DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy"
+		hostmakedepends+=" nasm"
+		;;
+	*) ;;
 	esac
 fi
 
 case "$XBPS_TARGET_MACHINE" in
-	ppc64*)
-		# altivec does not build without power8 being enabled
-		configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ppc64*)
+	# altivec does not build without power8 being enabled
+	configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
 		 -DCPU_POWER8=$(vopt_if altivec ON OFF)"
-		;;
-	*) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
+	;;
+*) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
 esac
 
 pre_configure() {

From 9ca1712c496bcddbfca581bd28a3185df8938b0c Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:15:26 -0300
Subject: [PATCH 02/10] libheif: update to 1.19.5.

---
 srcpkgs/libheif/template | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/libheif/template b/srcpkgs/libheif/template
index 8edff25f6f05d4..18d356aa1000c5 100644
--- a/srcpkgs/libheif/template
+++ b/srcpkgs/libheif/template
@@ -1,8 +1,9 @@
-# Template file for 'libheif'.
+# Template file for 'libheif'
 pkgname=libheif
-version=1.18.1
-revision=2
+version=1.19.5
+revision=1
 build_style=cmake
+configure_args="-DBUILD_TESTING=OFF"
 makedepends="libjpeg-turbo-devel libpng-devel libde265-devel x265-devel
  libaom-devel"
 short_desc="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder"
@@ -11,7 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/strukturag/libheif"
 changelog="https://github.com/strukturag/libheif/releases"
 distfiles="https://github.com/strukturag/libheif/archive/v${version}.tar.gz"
-checksum=73bc94442038d44d56fe730f72516ae53134eb15b878a7ad89ef60fac93a3318
+checksum=5cd9a3e28493310358e1c1299cd596cc4c7ae5fb985eceb758fa6141424e58bb
 
 libheif-devel_package() {
 	short_desc+=" - development files"

From 5165f8751d3623fcae99b5a9c0cf509b05352eac Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:15:47 -0300
Subject: [PATCH 03/10] vlc: revbump for x265-4.0.

---
 srcpkgs/vlc/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index 854e8815c90a9d..8bcd63d55db21f 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -1,7 +1,7 @@
 # Template file for 'vlc'
 pkgname=vlc
 version=3.0.21
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--disable-gme --disable-libtar --enable-jack
  --enable-live555 --disable-fluidsynth --enable-dvdread

From 88c664ebf5899c728b77ac651abfb259378b53d6 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:16:11 -0300
Subject: [PATCH 04/10] baresip: revbump for x265-4.0.

---
 srcpkgs/baresip/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/baresip/template b/srcpkgs/baresip/template
index 5f5ff9f179a7b2..b81b265a5a39bc 100644
--- a/srcpkgs/baresip/template
+++ b/srcpkgs/baresip/template
@@ -1,7 +1,7 @@
 # Template file for 'baresip'
 pkgname=baresip
 version=3.18.0
-revision=1
+revision=2
 build_style=cmake
 hostmakedepends="pkg-config glib-devel"
 makedepends="libgsm-devel libpng-devel openssl-devel libsndfile-devel

From b9cd8dc90fa6b0866ce718d055b5321d1a512bf7 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:16:46 -0300
Subject: [PATCH 05/10] digikam: revbump for x265-4.0.

---
 srcpkgs/digikam/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/digikam/template b/srcpkgs/digikam/template
index 1a64d3c760563f..68208cb1f36a93 100644
--- a/srcpkgs/digikam/template
+++ b/srcpkgs/digikam/template
@@ -1,7 +1,7 @@
 # Template file for 'digikam'
 pkgname=digikam
 version=8.5.0
-revision=2
+revision=3
 build_style=cmake
 configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
  -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins -DBUILD_WITH_QT6=ON

From d3f1927128b396f4f6872386b523de08fa1e4273 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:17:27 -0300
Subject: [PATCH 06/10] gimp: revbump for x265-4.0.

---
 srcpkgs/gimp/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..d6d0d3291d2f19 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,7 +1,7 @@
 # Template file for 'gimp'
 pkgname=gimp
 version=2.10.38
-revision=3
+revision=4
 build_style=gnu-configure
 configure_args="--disable-check-update --datadir=/usr/share --disable-python"
 hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool

From 49b4afd79b0f52c9a0fc806e52a2da29a347a2c8 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:18:00 -0300
Subject: [PATCH 07/10] ffmpeg6: revbump for x265-4.0.

---
 srcpkgs/ffmpeg6/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/ffmpeg6/template b/srcpkgs/ffmpeg6/template
index 9b66727465200e..5ca80c5f1b7f8f 100644
--- a/srcpkgs/ffmpeg6/template
+++ b/srcpkgs/ffmpeg6/template
@@ -2,7 +2,7 @@
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg6
 version=6.1.2
-revision=3
+revision=4
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
  libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel

From e206b111d140ab856481080ebe2e237ee6f3ce36 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:18:43 -0300
Subject: [PATCH 08/10] avidemux: revbump for x265-4.0.

---
 srcpkgs/avidemux/patches/ADM_x265.patch | 44 +++++++++++++++++++++++++
 srcpkgs/avidemux/template               |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/avidemux/patches/ADM_x265.patch

diff --git a/srcpkgs/avidemux/patches/ADM_x265.patch b/srcpkgs/avidemux/patches/ADM_x265.patch
new file mode 100644
index 00000000000000..6db76d7ffc332e
--- /dev/null
+++ b/srcpkgs/avidemux/patches/ADM_x265.patch
@@ -0,0 +1,44 @@
+--- a/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp       2022-09-17 10:59:17.000000000 -0300
++++ b/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp       2025-01-26 19:27:19.796218401 -0300
+@@ -205,15 +205,20 @@
+     //
+       x265_nal          *nal;
+       uint32_t          nbNal = 0;
+-      x265_picture      pic_out;
+-      api->picture_init(&param,&pic_out);
++      x265_picture      pic_out[MAX_SCALABLE_LAYERS];
++      x265_picture      *pic_out_ptr[MAX_SCALABLE_LAYERS];
+       out->flags = 0;
+       
++      for (int i = 0; i < MAX_SCALABLE_LAYERS; i++)
++      {
++             api->picture_init(&param,&pic_out[i]);
++             pic_out_ptr[i] = &pic_out[i];
++      }
+         int er;
+         if(false==gotFrame)     
+         {
+             ADM_info("Flushing delayed frames\n");
+-            er = api->encoder_encode(handle, &nal, &nbNal, NULL, &pic_out);
++            er = api->encoder_encode(handle, &nal, &nbNal, NULL, pic_out_ptr);
+             if(er<=0)
+             {
+                 ADM_info ("End of flush\n");
+@@ -221,7 +226,7 @@
+             }
+         }else 
+         {
+-            er = api->encoder_encode(handle, &nal, &nbNal, &pic, &pic_out);
++            er = api->encoder_encode(handle, &nal, &nbNal, &pic, pic_out_ptr);
+             if(er<0)
+             {
+               ADM_error ("[x265] Error encoding %d\n",er);
+@@ -236,7 +241,7 @@
+ 
+ 
+     // 3-encode
+-    if(false==postAmble(out,nbNal,nal,&pic_out))
++    if(false==postAmble(out,nbNal,nal,pic_out_ptr[0]))
+     {
+         ADM_warning("[x265] postAmble failed\n");
+         return false;
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index d66f8524bd0e28..b972ecac92ed31 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -1,7 +1,7 @@
 # Template file for 'avidemux'
 pkgname=avidemux
 version=2.8.1
-revision=2
+revision=3
 # Can't be compiled for aarch64, arm* or mips*
 archs="x86_64* i686*"
 hostmakedepends="cmake pkg-config qt5-host-tools qt5-devel tar yasm"

From 7ba86a8d9cf1f76adc696929cffd3f050d53bd3f Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:18:59 -0300
Subject: [PATCH 09/10] ffmpeg: update to 4.4.5.

---
 .../patches/armv5tel-floating-point.patch     | 18 -----
 srcpkgs/ffmpeg/patches/binutils-2.41.patch    | 73 -------------------
 ...h-libavcodec-libsvtav1-ten_bit_format.diff | 40 ----------
 .../workaround-mesa-readeon-vaapi-bug.patch   | 28 -------
 srcpkgs/ffmpeg/template                       |  6 +-
 5 files changed, 3 insertions(+), 162 deletions(-)
 delete mode 100644 srcpkgs/ffmpeg/patches/armv5tel-floating-point.patch
 delete mode 100644 srcpkgs/ffmpeg/patches/binutils-2.41.patch
 delete mode 100644 srcpkgs/ffmpeg/patches/patch-libavcodec-libsvtav1-ten_bit_format.diff
 delete mode 100644 srcpkgs/ffmpeg/patches/workaround-mesa-readeon-vaapi-bug.patch

diff --git a/srcpkgs/ffmpeg/patches/armv5tel-floating-point.patch b/srcpkgs/ffmpeg/patches/armv5tel-floating-point.patch
deleted file mode 100644
index 9a55178c74f0fd..00000000000000
--- a/srcpkgs/ffmpeg/patches/armv5tel-floating-point.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/libavfilter/vf_drawtext.c	2017-10-26 21:03:03.000000000 +0200
-+++ b/libavfilter/vf_drawtext.c	2017-11-21 11:06:49.602284422 +0100
-@@ -39,6 +39,15 @@
- #endif
- #include <fenv.h>
- 
-+#if (FE_ALL_EXCEPT == 0)
-+/* E.g. ARM soft float does not define these */
-+#define FE_INVALID    0
-+#define FE_DIVBYZERO  0
-+#define FE_OVERFLOW   0
-+#define FE_UNDERFLOW  0
-+#define FE_INEXACT    0
-+#endif
-+
- #if CONFIG_LIBFONTCONFIG
- #include <fontconfig/fontconfig.h>
- #endif
diff --git a/srcpkgs/ffmpeg/patches/binutils-2.41.patch b/srcpkgs/ffmpeg/patches/binutils-2.41.patch
deleted file mode 100644
index 53a596d0ee7d4e..00000000000000
--- a/srcpkgs/ffmpeg/patches/binutils-2.41.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From effadce6c756247ea8bae32dc13bb3e6f464f0eb Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
-Date: Sun, 16 Jul 2023 18:18:02 +0300
-Subject: [PATCH] avcodec/x86/mathops: clip constants used with shift
- instructions within inline assembly
-
-Fixes assembling with binutil as >= 2.41
-
-Signed-off-by: James Almer <jamrial@gmail.com>
----
- libavcodec/x86/mathops.h | 26 +++++++++++++++++++++++---
- 1 file changed, 23 insertions(+), 3 deletions(-)
-
-diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
-index 6298f5ed1983b..ca7e2dffc1076 100644
---- a/libavcodec/x86/mathops.h
-+++ b/libavcodec/x86/mathops.h
-@@ -35,12 +35,20 @@
- static av_always_inline av_const int MULL(int a, int b, unsigned shift)
- {
-     int rt, dummy;
-+    if (__builtin_constant_p(shift))
-     __asm__ (
-         "imull %3               \n\t"
-         "shrdl %4, %%edx, %%eax \n\t"
-         :"=a"(rt), "=d"(dummy)
--        :"a"(a), "rm"(b), "ci"((uint8_t)shift)
-+        :"a"(a), "rm"(b), "i"(shift & 0x1F)
-     );
-+    else
-+        __asm__ (
-+            "imull %3               \n\t"
-+            "shrdl %4, %%edx, %%eax \n\t"
-+            :"=a"(rt), "=d"(dummy)
-+            :"a"(a), "rm"(b), "c"((uint8_t)shift)
-+        );
-     return rt;
- }
- 
-@@ -113,19 +121,31 @@ __asm__ volatile(\
- // avoid +32 for shift optimization (gcc should do that ...)
- #define NEG_SSR32 NEG_SSR32
- static inline  int32_t NEG_SSR32( int32_t a, int8_t s){
-+    if (__builtin_constant_p(s))
-     __asm__ ("sarl %1, %0\n\t"
-          : "+r" (a)
--         : "ic" ((uint8_t)(-s))
-+         : "i" (-s & 0x1F)
-     );
-+    else
-+        __asm__ ("sarl %1, %0\n\t"
-+               : "+r" (a)
-+               : "c" ((uint8_t)(-s))
-+        );
-     return a;
- }
- 
- #define NEG_USR32 NEG_USR32
- static inline uint32_t NEG_USR32(uint32_t a, int8_t s){
-+    if (__builtin_constant_p(s))
-     __asm__ ("shrl %1, %0\n\t"
-          : "+r" (a)
--         : "ic" ((uint8_t)(-s))
-+         : "i" (-s & 0x1F)
-     );
-+    else
-+        __asm__ ("shrl %1, %0\n\t"
-+               : "+r" (a)
-+               : "c" ((uint8_t)(-s))
-+        );
-     return a;
- }
- 
diff --git a/srcpkgs/ffmpeg/patches/patch-libavcodec-libsvtav1-ten_bit_format.diff b/srcpkgs/ffmpeg/patches/patch-libavcodec-libsvtav1-ten_bit_format.diff
deleted file mode 100644
index aa948f7a8a2dfb..00000000000000
--- a/srcpkgs/ffmpeg/patches/patch-libavcodec-libsvtav1-ten_bit_format.diff
+++ /dev/null
@@ -1,40 +0,0 @@
-#==================================================================================================
-# From 031f1561cd286596cdb374da32f8aa816ce3b135 Mon Sep 17 00:00:00 2001
-# From: Christopher Degawa <christopher.degawa@intel.com>
-# Date: Thu, 20 Oct 2022 22:55:27 -0500
-# Subject: [PATCH] avcodec/libsvtav1: remove compressed_ten_bit_format and simplify alloc_buffer
-#
-# compressed_ten_bit_format has been deprecated upstream and has no effect
-# and can be removed. Plus, technically it was never used in the first place
-# since it would require the app (ffmpeg) to set it and do additional
-# processing of the input frames.
-#
-# Also simplify alloc_buffer by removing calculations relating to the non-existant processing.
-#
-# Signed-off-by: Christopher Degawa <christopher.degawa@intel.com>
-#==================================================================================================
---- a/libavcodec/libsvtav1.c
-+++ b/libavcodec/libsvtav1.c
-@@ -124,16 +124,12 @@ static int svt_print_error(void *log_ctx, EbErrorType err,
- 
- static int alloc_buffer(EbSvtAv1EncConfiguration *config, SvtContext *svt_enc)
- {
--    const int    pack_mode_10bit =
--        (config->encoder_bit_depth > 8) && (config->compressed_ten_bit_format == 0) ? 1 : 0;
--    const size_t luma_size_8bit  =
--        config->source_width * config->source_height * (1 << pack_mode_10bit);
--    const size_t luma_size_10bit =
--        (config->encoder_bit_depth > 8 && pack_mode_10bit == 0) ? luma_size_8bit : 0;
-+    const size_t luma_size = config->source_width * config->source_height *
-+        (config->encoder_bit_depth > 8 ? 2 : 1);
- 
-     EbSvtIOFormat *in_data;
- 
--    svt_enc->raw_size = (luma_size_8bit + luma_size_10bit) * 3 / 2;
-+    svt_enc->raw_size = luma_size * 3 / 2;
- 
-     // allocate buffer for in and out
-     svt_enc->in_buf           = av_mallocz(sizeof(*svt_enc->in_buf));
--- 
-GitLab
-
diff --git a/srcpkgs/ffmpeg/patches/workaround-mesa-readeon-vaapi-bug.patch b/srcpkgs/ffmpeg/patches/workaround-mesa-readeon-vaapi-bug.patch
deleted file mode 100644
index 00e3f68a415b84..00000000000000
--- a/srcpkgs/ffmpeg/patches/workaround-mesa-readeon-vaapi-bug.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 811d290844206fc73dc39c3e5b67d5d895baedf8 Mon Sep 17 00:00:00 2001
-From: Rainer Hochecker <fernetmenta@online.de>
-Date: Sat, 26 Jan 2019 19:48:35 +0100
-Subject: [PATCH] avcodec/vaapi_h264: skip decode if pic has no slices
-
-This fixes / workarounds https://bugs.freedesktop.org/show_bug.cgi?id=105368.
-It was hit frequently when watching h264 channels received via DVB-X.
-Corresponding kodi bug: https://github.com/xbmc/xbmc/issues/15704
----
- libavcodec/vaapi_h264.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
-index 5854587a255..f12fdc457a4 100644
---- a/libavcodec/vaapi_h264.c
-+++ b/libavcodec/vaapi_h264.c
-@@ -317,6 +317,11 @@ static int vaapi_h264_end_frame(AVCodecContext *avctx)
-     H264SliceContext *sl = &h->slice_ctx[0];
-     int ret;
- 
-+    if (pic->nb_slices == 0) {
-+        ret = AVERROR_INVALIDDATA;
-+        goto finish;
-+    }
-+
-     ret = ff_vaapi_decode_issue(avctx, pic);
-     if (ret < 0)
-         goto finish;
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index 6b36bcfc98137f..91eccfd78c1b04 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -1,8 +1,8 @@
 # Template file for 'ffmpeg'
 # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
 pkgname=ffmpeg
-version=4.4.4
-revision=10
+version=4.4.5
+revision=1
 build_style=meta
 short_desc="Decoding, encoding and streaming software (transitional dummy package)"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -10,7 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.ffmpeg.org"
 changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
-checksum=e80b380d595c809060f66f96a5d849511ef4a76a26b76eacf5778b94c3570309
+checksum=f9514e0d3515aee5a271283df71636e1d1ff7274b15853bcd84e144be416ab07
 
 hostmakedepends="pkg-config perl"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel

From 66e1ea8ab2f5cfc5a170203e507ab87cc1acbf87 Mon Sep 17 00:00:00 2001
From: 1is7ac3 <isaac.qa13@gmail.com>
Date: Mon, 3 Feb 2025 17:19:33 -0300
Subject: [PATCH 10/10] handbrake: revbump for x265-4.0.

---
 srcpkgs/handbrake/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index d32651a0abd02d..22fb9b6f4eb7d7 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -1,7 +1,7 @@
 # Template file for 'handbrake'
 pkgname=handbrake
 version=1.8.1
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--force --disable-df-fetch --harden
  $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"

  parent reply	other threads:[~2025-02-06  4:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20 21:47 [PR PATCH] X265, ffmpeg, handbrake, " 1is7ac3
2025-01-20 22:07 ` [PR PATCH] [Updated] " 1is7ac3
2025-01-21 10:49 ` [PR PATCH] [Updated] X265, ffmpeg and " 1is7ac3
2025-01-22  3:20 ` 1is7ac3
2025-01-24  4:39 ` 1is7ac3
2025-01-26 23:20 ` 1is7ac3
2025-02-03 19:34 ` 1is7ac3
2025-02-03 19:57 ` 1is7ac3
2025-02-03 20:20 ` 1is7ac3
2025-02-03 20:41 ` 1is7ac3
2025-02-06  4:16 ` 1is7ac3 [this message]
2025-03-24  0:07 ` 1is7ac3
2025-03-24  0:41 ` 1is7ac3
2025-03-26  4:24 ` 1is7ac3
2025-03-28  2:18 ` 1is7ac3

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250206041641.5484E21CED@inbox.vuxu.org \
    --to=1is7ac3@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).