multimedia/vapoursynth: unbreak runtime on non-x86

vapoursynth.Error: Failed to obtain VapourSynth API pointer. System
does not support SSE2 or is the Python module and loaded core library
mismatched?
This commit is contained in:
Jan Beich 2017-10-14 22:13:21 +00:00
parent fb5cb75f38
commit e6ea6764d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=452091
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= vapoursynth
PORTVERSION= R39
PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org

View file

@ -9,13 +9,15 @@
#include <sys/auxv.h>
void getCPUFeatures(CPUFeatures *cpuFeatures) {
@@ -89,5 +89,7 @@ void getCPUFeatures(CPUFeatures *cpuFeat
@@ -98,5 +98,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
#endif
}
#else
-#error Do not know how to get CPU features.
+void getCPUFeatures(CPUFeatures *cpuFeatures) {
+ memset(cpuFeatures, 0, sizeof(CPUFeatures));
+
+ cpuFeatures->can_run_vs = 1;
+}
#endif
--- src/core/cpufeatures.h.orig 2016-02-02 16:12:42 UTC