Source code for the LGPL libraries in Morfi for Android
=======================================================

Morfi for Android uses the same two libraries as Morfi for iPhone and iPad, under the GNU
Lesser General Public License:

  FFmpeg 9.0.2   https://ffmpeg.org              LGPL version 2.1 or later
  LAME 4.0       https://lame.sourceforge.io     LGPL version 2 or later

They are built from the same official release files, unchanged, that are in the folder
above this one (ffmpeg-9.0.2.tar.xz and lame-4.0.tar.gz). This folder holds what is
particular to Android:

  build-ffmpeg-android.sh   the script that builds both for Android, with the configure
                            options (the same lists of file readers and decoders as on
                            iPhone and iPad)
  build-info/               for each kind of phone (arm64-v8a, armeabi-v7a, x86_64): the
                            configure command, the licence configure reported, how each
                            library was linked, and each release file's SHA-256
  morfi_media_jni.c         Morfi's own code: the calls it makes into FFmpeg and LAME from
                            the app (not part of FFmpeg or LAME; included, with
                            MorfiFFmpeg.h in the folder above, so a replacement library can
                            be checked)

Changes made to FFmpeg or LAME: none. Nothing is patched; a diff against the releases is
empty. FFmpeg is built without --enable-gpl and without --enable-nonfree, with file
readers and decoders only; LAME as the encoder library only.

In the app each is a separate shared library (lib/<abi>/libffmpeg.so and libmp3lame.so in
the APK), loaded when the app runs and not linked into Morfi's own code, which is in
libmorfimedia.so and only refers to them. To use your own build: put the two release files
in ThirdParty/sources/ beside a scripts/ folder holding build-ffmpeg-android.sh, run it on
a computer with the Android NDK, and replace libffmpeg.so or libmp3lame.so in the APK with
the one it makes, signing the APK with your own key.

FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project. Morfi does not
own FFmpeg or LAME.
