configure.ac: check for avcodec_decode_audio2()
Disable the ffmpeg decoder plugin if avcodec_decode_audio2() is not available.
This commit is contained in:
parent
85a7d1a148
commit
104d5120c9
@ -755,6 +755,14 @@ if test x$enable_ffmpeg = xyes; then
|
||||
enable_ffmpeg=no)
|
||||
fi
|
||||
|
||||
if test x$enable_ffmpeg = xyes; then
|
||||
old_LIBS=$LIBS
|
||||
LIBS="$LIBS $FFMPEG_LIBS"
|
||||
AC_CHECK_LIB(avcodec, avcodec_decode_audio2,,
|
||||
enable_ffmpeg=no)
|
||||
LIBS=$old_LIBS
|
||||
fi
|
||||
|
||||
if test x$enable_ffmpeg = xyes; then
|
||||
# prior to ffmpeg svn12865, you had to specify include files
|
||||
# without path prefix
|
||||
|
Loading…
Reference in New Issue
Block a user