Skip to content

vp8/vp9 encode neon_dotprod related crash fixed by --enable-runtime-cpu-detect #111

@juha-h

Description

@juha-h

First I would like to thank you for this project. I found it as good replacement to ffmpeg-kit which is not maintained anymore.

When I built the libs for my Android project, I noticed that when I used vp8 or vp9 codec, there was encode/neon_dotprod related crash. I got it fixed by this patch:

diff --git a/scripts/libvpx/build.sh b/scripts/libvpx/build.sh
index 4a39815..61c5eeb 100755
--- a/scripts/libvpx/build.sh
+++ b/scripts/libvpx/build.sh
@@ -56,7 +56,7 @@ NM=${FAM_NM} \
     --disable-unit-tests \
     --disable-decode-perf-tests \
     --disable-encode-perf-tests \
-    --disable-runtime-cpu-detect  || exit 1
+    --enable-runtime-cpu-detect  || exit 1

In the build I had --target-abis=arm64-v8a. I don't have any device with other target-abi.

So would it be possible by default enable runtime-cpu-detect when $ANDROID_ABI is arm64-v8a?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions