diff --git a/pythonforandroid/recipes/ffmpeg/__init__.py b/pythonforandroid/recipes/ffmpeg/__init__.py index 3bc824834..f7134b338 100644 --- a/pythonforandroid/recipes/ffmpeg/__init__.py +++ b/pythonforandroid/recipes/ffmpeg/__init__.py @@ -28,6 +28,12 @@ def build_arch(self, arch): cflags = [] ldflags = [] + # enable hardware acceleration codecs + flags = [ + '--enable-jni', + '--enable-mediacodec' + ] + if 'openssl' in self.ctx.recipe_build_order: flags += [ '--enable-openssl',