arm: Fall back to runtime cpu feature detection via /proc/cpuinfo
authorMartin Storsjö <martin@martin.st>
Thu, 7 Feb 2013 08:54:20 +0000 (10:54 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 11 Feb 2013 15:15:15 +0000 (17:15 +0200)
commitab8f1a698990c33afb4c1c6ae5af3d6de4f696cb
tree6c7cfe28a6ae00c17b6cca58a6a5373c173610ca
parentd46d87d1d3de41758b08c045d4b20f4b16ad21de
arm: Fall back to runtime cpu feature detection via /proc/cpuinfo

On recent android versions, /proc/self/auxw is unreadable
(unless the process is running running under the shell uid or
in debuggable mode, which makes it hard to notice). See
http://b.android.com/43055 and
https://android-review.googlesource.com/51271 for more information
about the issue.

This makes sure e.g. neon optimizations are enabled at runtime in
android apps even when built in release mode, if configured to
use the runtime detection.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/arm/cpu.c