Commit 104d5120 authored by Max Kellermann's avatar Max Kellermann

configure.ac: check for avcodec_decode_audio2()

Disable the ffmpeg decoder plugin if avcodec_decode_audio2() is not available.
parent 85a7d1a1
......@@ -756,6 +756,14 @@ if test x$enable_ffmpeg = xyes; then
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
old_CPPCFLAGS=$CPPFLAGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment