1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Disable all asm for FFmpeg, to compatible with ARM CPU.

This commit is contained in:
winlin 2022-06-15 21:13:49 +08:00
parent 1f0ea3fdf5
commit d9352ec43b

View file

@ -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" FFMPEG_CONFIGURE="env PKG_CONFIG_PATH=$(cd ${SRS_OBJS}/${SRS_PLATFORM} && pwd)/opus/lib/pkgconfig ./configure"
fi fi
# If disable nasm, disable all ASMs. # Disable all asm for FFmpeg, to compatible with ARM CPU.
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" FFMPEG_OPTIONS="--disable-asm --disable-x86asm --disable-inline-asm"
fi
# Only build static libraries if no shared FFmpeg. # Only build static libraries if no shared FFmpeg.
if [[ $SRS_SHARED_FFMPEG == YES ]]; then if [[ $SRS_SHARED_FFMPEG == YES ]]; then
FFMPEG_OPTIONS="$FFMPEG_OPTIONS --enable-shared" FFMPEG_OPTIONS="$FFMPEG_OPTIONS --enable-shared"