Error:error: undefined reference to 'av_bitstream_filter_filter'
Error:error: undefined reference to 'avpriv_codec2_mode_bit_rate'
Error:error: undefined reference to 'avpriv_codec2_mode_frame_size'
Error:error: undefined reference to 'avpriv_codec2_mode_block_align'
Error:error: undefined reference to 'av_adts_header_parse'
Error:error: linker command failed with exit code 1 (use -v to see invocation)
这个是因为连接的静态库之间有依赖,所以连接时有先后顺序。如我的CMakeLists.text中如下写,就会出现上述错误
需要添加以下库:
z
OpenSLES
android
target_link_libraries(
dnplayer
avfilter
avformat
avcodec
avutil
swresample
swscale
# ffmpeg
z
OpenSLES
android
log )