shithub: openh264

Download patch

ref: 325c63d0ca401ed6ce17182efc283af9da38a882
parent: 806e59fcb18e95227272ae31f6bd0f59b384a174
parent: 04c6c95577b32e31e534fa58b4e89e7433d4fc6f
author: ruil2 <[email protected]>
date: Tue Jul 1 10:53:52 EDT 2014

Merge pull request #1047 from mstorsjo/cpufeatures-armv8

Update the generic 32 bit arm linux cpu feature detection to support 64 bit kernels

--- a/codec/common/src/cpu.cpp
+++ b/codec/common/src/cpu.cpp
@@ -258,9 +258,10 @@
   int flags = 0;
   while (fgets (buf, sizeof (buf), f)) {
     if (!strncmp (buf, "Features", strlen ("Features"))) {
-      if (strstr (buf, " neon "))
+      // The asimd and fp features are listed on 64 bit ARMv8 kernels
+      if (strstr (buf, " neon ") || strstr(buf, " asimd "))
         flags |= WELS_CPU_NEON;
-      if (strstr (buf, " vfpv3 "))
+      if (strstr (buf, " vfpv3 ") || strstr(buf, " fp "))
         flags |= WELS_CPU_VFPv3;
       break;
     }