[vlc-commits] commit: AVIO: fix compilation when avio.h is separated from avformat.h ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Fri Nov 12 11:41:34 CET 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Nov 11 20:54:01 2010 +0100| [845454bb76d96c52de62f49c71b1ee33574dad48] | committer: Jean-Baptiste Kempf
AVIO: fix compilation when avio.h is separated from avformat.h
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=845454bb76d96c52de62f49c71b1ee33574dad48
---
configure.ac | 2 +-
modules/access/avio.h | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 94ad6ac..797dc65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2648,7 +2648,7 @@ then
VLC_SAVE_FLAGS
CPPFLAGS="${CPPFLAGS} ${AVFORMAT_CFLAGS}"
CFLAGS="${CFLAGS} ${AVFORMAT_CFLAGS}"
- AC_CHECK_HEADERS(libavformat/avformat.h ffmpeg/avformat.h)
+ AC_CHECK_HEADERS(libavformat/avformat.h ffmpeg/avformat.h libavformat/avio.h)
AC_CHECK_HEADERS(libavutil/avutil.h ffmpeg/avutil.h)
AS_IF([test "$enable_merge_ffmpeg" = "no"], [
VLC_ADD_PLUGIN([avformat access_avio])
diff --git a/modules/access/avio.h b/modules/access/avio.h
index 514824b..c0de75c 100644
--- a/modules/access/avio.h
+++ b/modules/access/avio.h
@@ -24,6 +24,9 @@
/* ffmpeg header */
#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H)
# include <libavformat/avformat.h>
+# if defined(HAVE_LIBAVFORMAT_AVIO_H)
+# include <libavformat/avio.h>
+# endif
#elif defined(HAVE_FFMPEG_AVFORMAT_H)
# include <ffmpeg/avformat.h>
#endif
More information about the vlc-commits
mailing list