如何使用android NDK解决关于ffmpeg 2.6的编译错误?

时间:2015-05-27 14:42:03

标签: android android-ndk ffmpeg

我收到了关于ffmpeg 2.6的编译错误。 我用的是android-ndk-r10d。 如何解决?

libavformat/mov.c:653: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/mov.c:685: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/movenc.c:4818: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/movenc.c:1359: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/utils.c:3375: error: undefined reference to 'avcodec_pix_fmt_to_codec_tag'
libavformat/utils.c:3376: error: undefined reference to 'avpriv_get_raw_pix_fmt_tags'

1 个答案:

答案 0 :(得分:0)

订单应该是这样的:

LOCAL_STATIC_LIBRARIES += libavformat libavcodec libswresample libswscale libavutil