Skip to content

Commit

Permalink
Disable all asm for FFmpeg, to compatible with ARM CPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 15, 2022
1 parent 1f0ea3f commit d9352ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions trunk/auto/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,8 @@ if [[ $SRS_FFMPEG_FIT == YES ]]; then
FFMPEG_CONFIGURE="env PKG_CONFIG_PATH=$(cd ${SRS_OBJS}/${SRS_PLATFORM} && pwd)/opus/lib/pkgconfig ./configure"
fi

# If disable nasm, disable all ASMs.
nasm -v >/dev/null 2>&1 && NASM_BIN_OK=YES
if [[ $NASM_BIN_OK != YES || $SRS_NASM == NO || $SRS_CROSS_BUILD == YES ]]; then
FFMPEG_OPTIONS="--disable-asm --disable-x86asm --disable-inline-asm"
fi
# Disable all asm for FFmpeg, to compatible with ARM CPU.
FFMPEG_OPTIONS="--disable-asm --disable-x86asm --disable-inline-asm"
# Only build static libraries if no shared FFmpeg.
if [[ $SRS_SHARED_FFMPEG == YES ]]; then
FFMPEG_OPTIONS="$FFMPEG_OPTIONS --enable-shared"
Expand Down

0 comments on commit d9352ec

Please sign in to comment.