commit e03457efedfea9c91eb2bd594448f2a200e9d118
Author: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
Date: Mon Mar 11 14:21:45 2024 +0100
Fix build with GCC14
add_time_include.patch => HandBrake-modern-c.patch | 14 ++++++++++++++
HandBrake.spec | 8 ++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/add_time_include.patch b/HandBrake-modern-c.patch
similarity index 50%
rename from add_time_include.patch
rename to HandBrake-modern-c.patch
index 9ab4131..f51f66e 100644
--- a/add_time_include.patch
+++ b/HandBrake-modern-c.patch
@@ -22,3 +22,17 @@ index 3c4dee193bf5..9bf128bdbc73 100644
#include "handbrake/handbrake.h"
#include "libavformat/avformat.h"
#include "handbrake/decomb.h"
+diff -up HandBrake-1.6.1/libhb/qsv_common.c.orig HandBrake-1.6.1/libhb/qsv_common.c
+--- HandBrake-1.6.1/libhb/qsv_common.c.orig 2023-01-22 17:36:49.000000000 +0100
++++ HandBrake-1.6.1/libhb/qsv_common.c 2024-03-11 14:28:19.626425759 +0100
+@@ -2183,7 +2183,9 @@ static int hb_qsv_parse_options(hb_job_t
+ }
+ else if (!strcasecmp(key, "async-depth"))
+ {
+- int async_depth = hb_qsv_atoi(value, &err);
++ char *str = hb_value_get_string_xform(value);
++ int async_depth = hb_qsv_atoi(str, &err);
++ free(str);
+ if (!err)
+ {
+ job->qsv.async_depth = async_depth;
diff --git a/HandBrake.spec b/HandBrake.spec
index 841a0c1..ab9352b 100644
--- a/HandBrake.spec
+++ b/HandBrake.spec
@@ -16,7 +16,7 @@
Name: HandBrake
Version: 1.6.1
-Release: 4%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
+Release: 5%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
Summary: An open-source multiplatform video transcoder
License: GPLv2+
URL:
https://handbrake.fr/
@@ -43,7 +43,8 @@ Patch2: %{name}-no-fdk_aac.patch
Patch3: %{name}-no-nasm.patch
# Patch from Gentoo
Patch4: %{name}-x265-link.patch
-Patch5: add_time_include.patch
+# Fix build with GCC14
+Patch5: %{name}-modern-c.patch
BuildRequires: a52dec-devel >= 0.7.4
BuildRequires: cmake
@@ -225,6 +226,9 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/%{desktop_id}.
%{_bindir}/HandBrakeCLI
%changelog
+* Mon Mar 11 2024 Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net> -
1.6.1-5
+- Fix build with GCC14
+
* Sat Feb 03 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.6.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild