[Libav-user] HW decoding on Android

Abel Alonso abelalon at gmail.com
Tue Jun 25 15:26:27 CEST 2013


I've checkout the current git head and libstagefright.cpp doesn't compile.
In build_error.txt you can find the error report.

I was also getting this error with the previous version that I was using
(1.1.5) and I fixed it including the header internal.h, but if I try to
apply the same simple patch, I get another error. In
after_patch_build_error.txt you can find the error report.

To confirm that I'm using the git head I executed git log
--pretty=format:%H -1 and I got: cea8a0077fc597a11838f2f7242c01722d577b44

I'm using the arm-linux-androideabi-4.6 toolchain from Android NDK r8e. The
Android headers I'm using were downloaded from:

git://github.com/CyanogenMod/android_frameworks_base.git
git://github.com/CyanogenMod/android_system_core.git
git://github.com/CyanogenMod/android_frameworks_native.git
git://github.com/CyanogenMod/android_frameworks_av.git
git://github.com/CyanogenMod/android_hardware_libhardware.git

And the Android libraries were downloaded from:

http://get.cm/get/jenkins/32371/cm-10.1.0-mako.zip

The configure line I'm using is:

./configure --target-os=linux --cross-prefix=arm-linux-androideabi-
--enable-cross-compile --disable-optimizations --disable-stripping
--enable-debug=3 --arch=arm --enable-asm --disable-symver
--enable-runtime-cpudetect --disable-doc --disable-ffplay --disable-ffprobe
--disable-ffserver --sysroot=/tmp/vplayer/sysroot/ --disable-avdevice
--disable-decoder=h264 --disable-decoder=h264_vdpau
--enable-libstagefright-h264 --enable-decoder=libstagefright_h264
--prefix=../build/stagefright/armeabi-v7a
--extra-cflags='-I/tmp/vplayer/sysroot//usr/include/
-I../android-source/frameworks/base/include
-I../android-source/system/core/include
-I../android-source/frameworks/av/include
-I../android-source/hardware/libhardware/include
-I../android-source/frameworks/av/include/media/stagefright
-I../android-source/frameworks/native/include
-I../android-source/frameworks/native/include/media/openmax
-I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/include
-I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include
-Wall -mthumb -pipe -fpic -fasm -g -finline-limit=300 -ffast-math
-fmodulo-sched -fmodulo-sched-allow-regmoves   -fstrict-aliasing
-Werror=strict-aliasing   -Wno-psabi -Wa,--noexecstack   -D__ARM_ARCH_5__
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__   -DANDROID -DNDEBUG
-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp'
--extra-ldflags='-Wl,--fix-cortex-a8 -L../android-libs
-L/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a
-Wl,-rpath-link,../android-libs' --extra-cxxflags='-Wno-multichar
-fno-exceptions -fno-rtti'



2013/6/25 Carl Eugen Hoyos <cehoyos at ag.or.at>

> Abel Alonso <abelalon at ...> writes:
>
> > As you can see, I had to enable the memalgin-hack to
> > get the app built. I did it because without that flag,
> > the file libavutil/mem.c didn't compile successfully
>
> Please provide the error report, but please test
> current git head first, your version looks old.
>
> What toolchain are you using?
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130625/501a9ce9/attachment.html>
-------------- next part --------------
arm-linux-androideabi-g++ -Wno-multichar -fno-exceptions -fno-rtti -D__STDC_CONSTANT_MACROS -I. -I./ --sysroot=/tmp/vplayer/sysroot/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -DHAVE_AV_CONFIG_H -I/tmp/vplayer/sysroot//usr/include/ -I../android-source/frameworks/base/include -I../android-source/system/core/include -I../android-source/frameworks/av/include -I../android-source/hardware/libhardware/include -I../android-source/frameworks/av/include/media/stagefright -I../android-source/frameworks/native/include -I../android-source/frameworks/native/include/media/openmax -I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/include -I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include -Wall -mthumb -pipe -fpic -fasm -g -finline-limit=300 -ffast-math -fmodulo-sched -fmodulo-sched-allow-regmoves -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__ -DANDROID -DNDEBUG -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -march=armv5 -std=c99 -fPIC -marm -g3 -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes  -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla   -c -o libavcodec/libstagefright.o libavcodec/libstagefright.cpp
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-format-zero-length' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../android-source/frameworks/native/include/binder/ProcessState.h:22:0,
                 from libavcodec/libstagefright.cpp:25:
../android-source/frameworks/native/include/utils/String8.h:227:59: warning: redundant redeclaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' in same scope [-Wredundant-decls]
../android-source/frameworks/native/include/utils/String16.h:120:13: warning: previous declaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' [-Wredundant-decls]
libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':
libavcodec/libstagefright.cpp:199:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1
CXX	libavcodec/libstagefright.o
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-format-zero-length' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../android-source/frameworks/native/include/binder/ProcessState.h:22:0,
                 from libavcodec/libstagefright.cpp:25:
../android-source/frameworks/native/include/utils/String8.h:227:59: warning: redundant redeclaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' in same scope [-Wredundant-decls]
../android-source/frameworks/native/include/utils/String16.h:120:13: warning: previous declaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' [-Wredundant-decls]
libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':
libavcodec/libstagefright.cpp:188:53: error: 'ff_get_buffer' was not declared in this scope
libavcodec/libstagefright.cpp:199:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1stagefright.cpp:188:53: error: 'ff_get_buffer' was not declared in this scope
libavcodec/libstagefright.cpp:199:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1
CXX	libavcodec/libstagefright.o
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-format-zero-length' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../android-source/frameworks/native/include/binder/ProcessState.h:22:0,
                 from libavcodec/libstagefright.cpp:25:
../android-source/frameworks/native/include/utils/String8.h:227:59: warning: redundant redeclaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' in same scope [-Wredundant-decls]
../android-source/frameworks/native/include/utils/String16.h:120:13: warning: previous declaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' [-Wredundant-decls]
libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':
libavcodec/libstagefright.cpp:188:53: error: 'ff_get_buffer' was not declared in this scope
libavcodec/libstagefright.cpp:199:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:460:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:485:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:518:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:537:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1
-------------- next part --------------
arm-linux-androideabi-g++ -Wno-multichar -fno-exceptions -fno-rtti -D__STDC_CONSTANT_MACROS -I. -I./ --sysroot=/tmp/vplayer/sysroot/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -DHAVE_AV_CONFIG_H -I/tmp/vplayer/sysroot//usr/include/ -I../android-source/frameworks/base/include -I../android-source/system/core/include -I../android-source/frameworks/av/include -I../android-source/hardware/libhardware/include -I../android-source/frameworks/av/include/media/stagefright -I../android-source/frameworks/native/include -I../android-source/frameworks/native/include/media/openmax -I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/include -I/home/aalonso/Desktop/Work/Android/android-ndk-r8e//sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include -Wall -mthumb -pipe -fpic -fasm -g -finline-limit=300 -ffast-math -fmodulo-sched -fmodulo-sched-allow-regmoves -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__ -DANDROID -DNDEBUG -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -march=armv5 -std=c99 -fPIC -marm -g3 -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes  -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla   -c -o libavcodec/libstagefright.o libavcodec/libstagefright.cpp
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-format-zero-length' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../android-source/frameworks/native/include/binder/ProcessState.h:22:0,
                 from libavcodec/libstagefright.cpp:25:
../android-source/frameworks/native/include/utils/String8.h:227:59: warning: redundant redeclaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' in same scope [-Wredundant-decls]
../android-source/frameworks/native/include/utils/String16.h:120:13: warning: previous declaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' [-Wredundant-decls]
libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':
libavcodec/libstagefright.cpp:189:53: error: too few arguments to function 'int ff_get_buffer(AVCodecContext*, AVFrame*, int)'
libavcodec/internal.h:200:5: note: declared here
libavcodec/libstagefright.cpp:200:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:461:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:461:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:486:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:486:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:519:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:519:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:538:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:538:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1
CXX	libavcodec/libstagefright.o
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-format-zero-length' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
In file included from ../android-source/frameworks/native/include/binder/ProcessState.h:22:0,
                 from libavcodec/libstagefright.cpp:25:
../android-source/frameworks/native/include/utils/String8.h:227:59: warning: redundant redeclaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' in same scope [-Wredundant-decls]
../android-source/frameworks/native/include/utils/String16.h:120:13: warning: previous declaration of 'android::TextOutput& android::operator<<(android::TextOutput&, const android::String16&)' [-Wredundant-decls]
libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':
libavcodec/libstagefright.cpp:189:53: error: too few arguments to function 'int ff_get_buffer(AVCodecContext*, AVFrame*, int)'
libavcodec/internal.h:200:5: note: declared here
libavcodec/libstagefright.cpp:200:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libavcodec/libstagefright.cpp: In function 'int Stagefright_decode_frame(AVCodecContext*, void*, int*, AVPacket*)':
libavcodec/libstagefright.cpp:461:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:461:16: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp: In function 'int Stagefright_close(AVCodecContext*)':
libavcodec/libstagefright.cpp:486:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:486:28: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:519:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:519:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:538:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
libavcodec/libstagefright.cpp:538:20: warning: 'AVCodecContext::release_buffer' is deprecated (declared at libavcodec/avcodec.h:2043) [-Wdeprecated-declarations]
make: *** [libavcodec/libstagefright.o] Error 1


More information about the Libav-user mailing list