summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-15 20:06:09 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-15 20:09:56 +0100
commit6c7bdd028173f8349759fe4b4b640722b85bf3c4 (patch)
treed7509ff6d9467734908393f36dec0710c72e0807 /plugins
parenta251a120ee0a6d1d1dd6e38ef80789e726c67846 (diff)
ffmpeg header location checking
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ffmpeg/ffmpeg.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index d6f10b62..67e3ddd7 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -16,12 +16,31 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <alloca.h>
+#include <errno.h>
+
#include "../../deadbeef.h"
+
+#if !FFMPEG_OLD
+
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/avutil.h>
#include <libavutil/avstring.h>
+#else
+
+#include <ffmpeg/avformat.h>
+#include <ffmpeg/avcodec.h>
+#include <ffmpeg/avutil.h>
+#include <ffmpeg/avstring.h>
+
+#endif
+
#define trace(...) { fprintf(stderr, __VA_ARGS__); }
//#define trace(fmt,...)