commit 4e6e648a6058e44fb80fe1d8bdb6027f48c87389
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Aug 6 16:05:09 2019 +0100
Add patch to fix ppc build
ffmpeg.spec | 2 ++
fix_ppc_build.patch | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 011ce88..1315260 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -97,6 +97,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
%else
Source0:
http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif
+Patch0: fix_ppc_build.patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
%{?_with_libnpp:BuildRequires: pkgconfig(nppc-%{_cuda_version})}
@@ -322,6 +323,7 @@ echo "git-snapshot-%{?branch}%{date}-rpmfusion" >
VERSION
%else
%setup -q -n ffmpeg-%{version}
%endif
+%patch0 -p1
# fix -O3 -g in host_cflags
sed -i "s|check_host_cflags -O3|check_host_cflags %{optflags}|" configure
mkdir -p _doc/examples
diff --git a/fix_ppc_build.patch b/fix_ppc_build.patch
new file mode 100644
index 0000000..3c35dc4
--- /dev/null
+++ b/fix_ppc_build.patch
@@ -0,0 +1,21 @@
+--- a/libswscale/ppc/swscale_vsx.c
++++ b/libswscale/ppc/swscale_vsx.c
+@@ -154,7 +154,7 @@
+ }
+ }
+
+-static void yuv2plane1_nbps_vsx(const int16_t *src, uint16_t *dest, int dstW,
++static av_always_inline void yuv2plane1_nbps_vsx(const int16_t *src, uint16_t *dest, int
dstW,
+ int big_endian, int output_bits)
+ {
+ const int dst_u = -(uintptr_t)dest & 7;
+@@ -273,7 +273,7 @@
+ }
+ }
+
+-static void yuv2plane1_16_vsx(const int32_t *src, uint16_t *dest, int dstW,
++static av_always_inline void yuv2plane1_16_vsx(const int32_t *src, uint16_t *dest, int
dstW,
+ int big_endian, int output_bits)
+ {
+ const int dst_u = -(uintptr_t)dest & 7;
+