From: Jordi Mallach Date: Wed, 15 May 2013 17:11:47 +0000 (+0200) Subject: Check for and include libavutil.h to avoid unresolved symbols. X-Git-Tag: v1.0.28~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2227c95be6267f7ad1ec3ad2fc09dbb5146bae0f;p=alsa-plugins.git Check for and include libavutil.h to avoid unresolved symbols. The a52 plugin uses av_free(), but does not check for libavutil availability. Patch configure.in to check for the module, and include libavutil.h. Signed-off-by: Jordi Mallach Signed-off-by: Takashi Iwai --- diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c index c40aadc..75c68bd 100644 --- a/a52/pcm_a52.c +++ b/a52/pcm_a52.c @@ -26,6 +26,7 @@ #include #include #include AVCODEC_HEADER +#include #if LIBAVCODEC_VERSION_MAJOR >= 53 && LIBAVCODEC_VERSION_MINOR >= 34 #include diff --git a/configure.in b/configure.in index 6f345f5..bf8676b 100644 --- a/configure.in +++ b/configure.in @@ -67,7 +67,7 @@ AC_ARG_ENABLE([avcodec], AS_HELP_STRING([--disable-avcodec], [Don't build plugins depending on avcodec (a52)])) if test "x$enable_avcodec" != "xno"; then - PKG_CHECK_MODULES(AVCODEC, [libavcodec], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) + PKG_CHECK_MODULES(AVCODEC, [libavcodec libavutil], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) fi if test "x$HAVE_AVCODEC" = "xno"; then