mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
android: fix video on arm 32 bits
Neon would cause a SIGBUS on ARM 32 bits and mediacodec would cause issues with the video feed. Disable them for now. Change-Id: I8a44f638b041e5ce0bd42e865576f47779e07546
This commit is contained in:

committed by
Adrien Béraud

parent
4cc84fa879
commit
bc023ebe00
@ -96,12 +96,16 @@ ifdef HAVE_ANDROID
|
||||
# Android Linux
|
||||
FFMPEGCONF += \
|
||||
--target-os=android \
|
||||
--enable-jni \
|
||||
--enable-jni
|
||||
# ARM 32 bits has trouble with mediacodec
|
||||
ifneq ($(ARCH),arm)
|
||||
FFMPEGCONF += \
|
||||
--enable-mediacodec \
|
||||
--enable-hwaccel=vp8_mediacodec \
|
||||
--enable-hwaccel=mpeg4_mediacodec \
|
||||
--enable-decoder=vp8_mediacodec \
|
||||
--enable-decoder=mpeg4_mediacodec
|
||||
endif
|
||||
# ASM not working on Android x86 https://trac.ffmpeg.org/ticket/4928
|
||||
ifeq ($(ARCH),i386)
|
||||
FFMPEGCONF += --disable-asm
|
||||
@ -164,15 +168,14 @@ endif
|
||||
|
||||
# ARM stuff
|
||||
ifeq ($(ARCH),arm)
|
||||
# neon causes SIGBUS error on ARM 32 bits
|
||||
FFMPEGCONF += --disable-neon
|
||||
FFMPEGCONF += --arch=arm
|
||||
ifdef HAVE_NEON
|
||||
FFMPEGCONF += --enable-neon
|
||||
endif
|
||||
ifdef HAVE_ARMV7A
|
||||
FFMPEGCONF += --cpu=cortex-a8
|
||||
endif
|
||||
ifdef HAVE_ARMV6
|
||||
FFMPEGCONF += --cpu=armv6 --disable-neon
|
||||
FFMPEGCONF += --cpu=armv6
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user