summaryrefslogtreecommitdiff
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-21 08:34:19 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 08:34:19 +0200
commitdef97411f2a613b26a47a87c55e241a6dcaf3e78 (patch)
treecf37f983ac0632ea31b2f0b11dfea95117c7c946 /src/inputPlugins
parentd52437d43f159bc03072bedcf2ac8aa7766be0ea (diff)
ffmpeg: detect which ffmpeg headers should be included
Since ffmpeg svn r12865, you have to include libavcodec/avcodec.h instead of avcodec.h. This cannot be checked at compile time, instead we have to add a check to configure.ac. Viliam's original ffmpeg plugin was based on the newer ffmpeg library, while my Debian installation had the older version. My attempt to correct his include statements wasn't correct after all.
Diffstat (limited to 'src/inputPlugins')
-rw-r--r--src/inputPlugins/ffmpeg_plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inputPlugins/ffmpeg_plugin.c b/src/inputPlugins/ffmpeg_plugin.c
index 7d3c24360..95e15957c 100644
--- a/src/inputPlugins/ffmpeg_plugin.c
+++ b/src/inputPlugins/ffmpeg_plugin.c
@@ -29,9 +29,15 @@
#include <sys/stat.h>
#include <unistd.h>
+#ifdef OLD_FFMPEG_INCLUDES
#include <avcodec.h>
#include <avformat.h>
#include <avio.h>
+#else
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavformat/avio.h>
+#endif
typedef struct {
int audioStream;