Commit 4bbbe32f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Disable avformat if avcodec is disabled

(cherry picked from commit a81518d6c9f960b92fcafb24855398600c0765ee)

Conflicts:

	configure.ac
parent 2acc282c
...@@ -2663,8 +2663,7 @@ dnl avcodec decoder/encoder plugin ...@@ -2663,8 +2663,7 @@ dnl avcodec decoder/encoder plugin
dnl dnl
AC_ARG_ENABLE(avcodec, AC_ARG_ENABLE(avcodec,
[ --enable-avcodec libavcodec codec (default enabled)]) [ --enable-avcodec libavcodec codec (default enabled)])
if test "${enable_avcodec}" != "no" AS_IF([test "${enable_avcodec}" != "no"], [
then
PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 51.48.0 libavutil], PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 51.48.0 libavutil],
[ [
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
...@@ -2680,7 +2679,9 @@ then ...@@ -2680,7 +2679,9 @@ then
],[ ],[
AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.]) AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.])
]) ])
fi ], [
have_avcodec="no"
])
dnl dnl
dnl libva needs avcodec dnl libva needs avcodec
...@@ -2772,7 +2773,9 @@ dnl avformat demuxer/muxer plugin ...@@ -2772,7 +2773,9 @@ dnl avformat demuxer/muxer plugin
dnl dnl
AC_ARG_ENABLE(avformat, AC_ARG_ENABLE(avformat,
[ --enable-avformat libavformat containers (default enabled)]) [ --enable-avformat libavformat containers (default enabled)],, [
enable_avformat="${have_avcodec}"
])
if test "${enable_avformat}" != "no" if test "${enable_avformat}" != "no"
then then
PKG_CHECK_MODULES(AVFORMAT,[libavformat libavutil], PKG_CHECK_MODULES(AVFORMAT,[libavformat libavutil],
......
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