Skip to content

av1 encoder crash fixed by enabling runtime cpu detect #112

@juha-h

Description

@juha-h

I got same kind of crash as I reported here #111 but now with av1 encoder. The crash got fixed by this patch:

diff --git a/scripts/libaom/build.sh b/scripts/libaom/build.sh
index 75ff651..56e2ade 100755
--- a/scripts/libaom/build.sh
+++ b/scripts/libaom/build.sh
@@ -12,7 +12,7 @@ ${CMAKE_EXECUTABLE} .. \
  -DCMAKE_TOOLCHAIN_FILE=${SCRIPTS_DIR}/libaom/android.cmake \
  -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
  -DCONFIG_PIC=1 \
- -DCONFIG_RUNTIME_CPU_DETECT=0 \
+ -DCONFIG_RUNTIME_CPU_DETECT=1 \
  -DENABLE_TESTS=0 \
  -DENABLE_DOCS=0 \
  -DENABLE_TESTDATA=0 \

Same issue was found and fixed the same way here https://github.com/obsproject/obs-deps/pull/238/files.

Its is OK for me to patch ffmpeg-android-maker, but it would be nice if it would possible to have ffmpeg-android-maker parameters or a config file instead.

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