From fe53ca7a07269a7a02810fc83689631534d25081 Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 18 Jun 2008 15:42:53 +0000 Subject: [PATCH] Bug 482 - Now handles new ffmpeg header locations. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2437 e3e1d417-86f3-4887-817a-d78f3d33393f --- configure.in | 4 ++++ src/zm_mpeg.h | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/configure.in b/configure.in index 7e0172c97..40e554282 100644 --- a/configure.in +++ b/configure.in @@ -182,6 +182,10 @@ AC_CHECK_MEMBERS([struct sigcontext.eip],,,[#include ]) AC_CHECK_TYPES(ucontext_t,,,[#include ]) AC_CHECK_HEADERS(mysql/mysql.h,,AC_MSG_ERROR(zm requires mysql/mysql.h),) +AC_CHECK_HEADERS(ffmpeg/avformat.h,,,) +AC_CHECK_HEADERS(libavformat/avformat.h,,,) +AC_CHECK_HEADERS(ffmpeg/swscale.h,,,) +AC_CHECK_HEADERS(libswscale/swscale.h,,,) AC_CHECK_HEADERS(pcre/pcre.h,,,) AC_CHECK_HEADERS(pcre.h,,,) AC_CHECK_DECLS(round,,,[#include ]) diff --git a/src/zm_mpeg.h b/src/zm_mpeg.h index 4b37d1a35..3d50fa38c 100644 --- a/src/zm_mpeg.h +++ b/src/zm_mpeg.h @@ -26,9 +26,21 @@ extern "C" { #define __STDC_CONSTANT_MACROS +#if HAVE_LIBAVFORMAT_AVFORMAT_H +#include +#elif HAVE_FFMPEG_AVFORMAT_H #include +#else +#error "Unable to locate avformat.h" +#endif #if HAVE_LIBSWSCALE +#if HAVE_LIBSWSCALE_SWSCALE_H +#include +#elif HAVE_FFMPEG_SWSCALE_H #include +#else +#error "Unable to locate swscale.h" +#endif #endif // HAVE_LIBSWSCALE }