From def97411f2a613b26a47a87c55e241a6dcaf3e78 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Oct 2008 08:34:19 +0200 Subject: 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. --- src/inputPlugins/ffmpeg_plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inputPlugins/ffmpeg_plugin.c') 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 #include +#ifdef OLD_FFMPEG_INCLUDES #include #include #include +#else +#include +#include +#include +#endif typedef struct { int audioStream; -- cgit v1.2.3