Intenté agregar el soporte de lifdk-aac a ffmpeg compilado para Android. Para ello utilicé:

    LINKER_LIBS="$LINKER_LIBS -lfdk-aac"
    cd fdk-aac
    ADDITIONAL_CONFIGURE_FLAG="$ADDITIONAL_CONFIGURE_FLAG --enable-libfdk-aac"
    export PKG_CONFIG_LIBDIR=$(pwd)/$PREFIX/lib/pkgconfig/
    export PKG_CONFIG_PATH=$(pwd)/$PREFIX/lib/pkgconfig/
    ./configure \
        --prefix=$(pwd)/$PREFIX \
        --host=$HOST \
        --disable-shared \
        --enable-static \
        --with-pic \
        $ADDITIONAL_CONFIGURE_FLAG \
        || exit 1
    make clean || exit 1
    make -j${JOBS} install || exit 1
    cd .. 

Y finalmente para ffmpeg usé:

LINKER_LIBS="$LINKER_LIBS -lavcodec -lavformat -lavresample -lavutil -lswresample -lswscale"
PKG_CONFIG=${CROSS_COMPILE}pkg-config
if [ ! -f $PKG_CONFIG ];
then
    cat > $PKG_CONFIG << EOF

#!/bin/bash

pkg-config \$*
EOF
        chmod u+x $PKG_CONFIG
    fi
    cd ffmpeg
    export PKG_CONFIG_LIBDIR=$(pwd)/$PREFIX/lib/pkgconfig/
    export PKG_CONFIG_PATH=$(pwd)/$PREFIX/lib/pkgconfig/
    ./configure --target-os=linux \
        --prefix=$PREFIX \
        --enable-cross-compile \
        --arch=$ARCH \
        --cc=$CC \
        --cross-prefix=$CROSS_COMPILE \
        --nm=$NM \
        --sysroot=$SYSROOT \
        --extra-libs=$LIBGCC_LINK \
        --extra-cflags=" -O3 -DANDROID -fpic -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums  -fno-strict-aliasing -finline-limit=300 -I$PREFIX/include $OPTIMIZE_CFLAGS" \
        --disable-shared \
        --enable-static \
        --enable-runtime-cpudetect \
        --extra-ldflags="-Wl,-rpath-link=$SYSROOT/usr/lib -L$SYSROOT/usr/lib  -nostdlib -lc -lm -ldl -llog -L$PREFIX/lib" \
        --enable-bsfs \
        --enable-decoders \
        --enable-encoders \
        --enable-parsers \
        --enable-hwaccels \
        --enable-muxers \
        --enable-avformat \
        --enable-avcodec \
        --enable-avresample \
    --enable-libvorbis \
        --enable-zlib \
    --enable-libmp3lame \
        --disable-doc \
        --disable-ffplay \
        --disable-ffmpeg \
        --disable-ffplay \
        --disable-ffprobe \
        --disable-ffserver \
        --disable-avfilter \
        --disable-avdevice \
        --enable-nonfree \
        --enable-version3 \
    --disable-stripping \
    --disable-linux-perf \
        --enable-asm \
        $ADDITIONAL_CONFIGURE_FLAG \
        || exit 1
    make clean || exit 1
    make -j${JOBS} install || exit 1
    cd ..

Se compila sin errores. Pero cuando intento reproducir un archivo .aac, no se escucha bien. Utilicé 3.4.2 fuentes ffmpeg, la última versión de libfdk-aac, ndk r10e, gcc 4.9.

¿Alguna pista? Gracias.

Mihaela
fuente