Skip to content
Snippets Groups Projects
Commit bc023ebe authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

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
parent 4cc84fa8
Branches
No related tags found
No related merge requests found
...@@ -96,12 +96,16 @@ ifdef HAVE_ANDROID ...@@ -96,12 +96,16 @@ ifdef HAVE_ANDROID
# Android Linux # Android Linux
FFMPEGCONF += \ FFMPEGCONF += \
--target-os=android \ --target-os=android \
--enable-jni \ --enable-jni
# ARM 32 bits has trouble with mediacodec
ifneq ($(ARCH),arm)
FFMPEGCONF += \
--enable-mediacodec \ --enable-mediacodec \
--enable-hwaccel=vp8_mediacodec \ --enable-hwaccel=vp8_mediacodec \
--enable-hwaccel=mpeg4_mediacodec \ --enable-hwaccel=mpeg4_mediacodec \
--enable-decoder=vp8_mediacodec \ --enable-decoder=vp8_mediacodec \
--enable-decoder=mpeg4_mediacodec --enable-decoder=mpeg4_mediacodec
endif
# ASM not working on Android x86 https://trac.ffmpeg.org/ticket/4928 # ASM not working on Android x86 https://trac.ffmpeg.org/ticket/4928
ifeq ($(ARCH),i386) ifeq ($(ARCH),i386)
FFMPEGCONF += --disable-asm FFMPEGCONF += --disable-asm
...@@ -164,15 +168,14 @@ endif ...@@ -164,15 +168,14 @@ endif
# ARM stuff # ARM stuff
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
# neon causes SIGBUS error on ARM 32 bits
FFMPEGCONF += --disable-neon
FFMPEGCONF += --arch=arm FFMPEGCONF += --arch=arm
ifdef HAVE_NEON
FFMPEGCONF += --enable-neon
endif
ifdef HAVE_ARMV7A ifdef HAVE_ARMV7A
FFMPEGCONF += --cpu=cortex-a8 FFMPEGCONF += --cpu=cortex-a8
endif endif
ifdef HAVE_ARMV6 ifdef HAVE_ARMV6
FFMPEGCONF += --cpu=armv6 --disable-neon FFMPEGCONF += --cpu=armv6
endif endif
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment