[vlc-commits] configure: require libavcodec >= 57

Ilkka Ollakka git at videolan.org
Wed Sep 7 11:16:44 CEST 2016


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Sep  4 14:09:35 2016 +0300| [53d723d5130ab62cba7215cc54fc961bfee51060] | committer: Ilkka Ollakka

configure: require libavcodec >= 57

check for ffmpeg/libav versions

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53d723d5130ab62cba7215cc54fc961bfee51060
---

 configure.ac | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index a0968a9..8a02c42 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2314,10 +2314,12 @@ dnl
 AC_ARG_ENABLE(avcodec,
 [  --enable-avcodec        libavcodec codec (default enabled)])
 AS_IF([test "${enable_avcodec}" != "no"], [
-  PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 55.0.0 libavutil >= 52.0.0], [
-    dnl PKG_CHECK_EXISTS([libavcodec < 56],, [
-    dnl   AC_MSG_ERROR([libavcodec versions 56 and later are not supported yet.])
-    dnl ])
+  dnl We need >=57.16.0 from libav or >=57.37.100 from ffmpeg
+  case "${avfork}" in
+    libav) av_codec_ver="57.16.0" ;;
+    ffmpeg) av_codec_ver="57.37.100" ;;
+  esac
+  PKG_CHECK_MODULES(AVCODEC,[libavcodec >= ${av_codec_ver} libavutil >= 52.0.0], [
     VLC_SAVE_FLAGS
     CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
     CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"



More information about the vlc-commits mailing list