commit 84e16803299f567a5663cecab4be80d5e4133b9f
Author: Jakub Bogusz <[email protected]>
Date:   Tue Jan 12 19:04:06 2021 +0100

    - updated to 1.5.3
    - added x86-nosimd patch (fix x86 build without SIMD enabled)

 vmaf-x86-nosimd.patch | 20 ++++++++++++++++++++
 vmaf.spec             |  6 ++++--
 2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/vmaf.spec b/vmaf.spec
index d447a13..907609f 100644
--- a/vmaf.spec
+++ b/vmaf.spec
@@ -15,13 +15,14 @@
 Summary:       Netflix's VMAF library
 Summary(pl.UTF-8):     Biblioteka Netflix VMAF
 Name:          vmaf
-Version:       1.5.2
+Version:       1.5.3
 Release:       1
 License:       BSD+patent
 Group:         Libraries
 #Source0Download: https://github.com/Netflix/vmaf/releases
 Source0:       
https://github.com/Netflix/vmaf/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 0bffac819d2f65c8efaf90c9ab43d27d
+# Source0-md5: 73914f1bc2e15a82162549f1eba735fa
+Patch0:                %{name}-x86-nosimd.patch
 URL:           https://github.com/Netflix/vmaf
 BuildRequires: libstdc++-devel >= 6:4.8
 BuildRequires: meson >= 0.47.0
@@ -79,6 +80,7 @@ Statyczna biblioteka Netflix VMAF.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %if %{without sse2}
 %{__sed} -i -e 's,#define ADM_OPT_RECIP_DIVISION,/* & */,' 
libvmaf/src/feature/adm_options.h
diff --git a/vmaf-x86-nosimd.patch b/vmaf-x86-nosimd.patch
new file mode 100644
index 0000000..b9a1f0a
--- /dev/null
+++ b/vmaf-x86-nosimd.patch
@@ -0,0 +1,20 @@
+--- vmaf-1.5.3/libvmaf/src/feature/adm_tools.c.orig    2020-08-25 
01:35:41.000000000 +0200
++++ vmaf-1.5.3/libvmaf/src/feature/adm_tools.c 2021-01-12 18:58:18.525832313 
+0100
+@@ -35,8 +35,7 @@
+ #define MIN(x, y) (((x) < (y)) ? (x) : (y))
+ #define MAX(x, y) (((x) > (y)) ? (x) : (y))
+ 
+-#if ARCH_X86
+-#ifdef ADM_OPT_RECIP_DIVISION
++#if ARCH_X86 && defined(ADM_OPT_RECIP_DIVISION)
+ 
+ #include <emmintrin.h>
+ 
+@@ -47,7 +46,6 @@
+ }
+ 
+ #define DIVS(n, d) ((n) * rcp_s(d))
+-#endif //ADM_OPT_RECIP_DIVISION
+ #else
+ #define DIVS(n, d) ((n) / (d))
+ #endif //ARCH_X86
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vmaf.git/commitdiff/84e16803299f567a5663cecab4be80d5e4133b9f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to