Fix includes for ffmpeg

This commit is contained in:
Luca Bigliardi
2009-03-10 18:26:21 +01:00
parent 6bfb549a36
commit 943e53a62b
4 changed files with 7 additions and 9 deletions
-2
View File
@@ -333,8 +333,6 @@ if test x$have_ffmpeg = xyes; then
else
AC_MSG_RESULT(not found)
fi
dnl most recent ffmpeg header mess workaround
FFMPEG_CFLAGS="$FFMPEG_CFLAGS -I/usr/include/ffmpeg/libavutil/ -I/usr/include/ffmpeg/libavformat/ -I/usr/include/ffmpeg/libavcodec/ -I/usr/include/ffmpeg/libswscale -I/usr/include/ffmpeg/"
AC_SUBST(FFMPEG_LIBS)
AC_SUBST(FFMPEG_CFLAGS)
AC_SUBST(SWSCALE_LIBS)
+2 -2
View File
@@ -8,8 +8,8 @@
#include <video_encoder.h>
#ifdef WITH_AVCODEC
#include <avcodec.h>
#include <avformat.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#define STREAM_IS_RAW(avformat_context) \
(avformat_context->oformat->flags & AVFMT_RAWPICTURE)
+2 -2
View File
@@ -33,8 +33,8 @@
/*
extern "C" {
#include <avcodec.h>
#include <avformat.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
*/
+3 -3
View File
@@ -22,10 +22,10 @@
#include <config.h>
extern "C" {
#include <avcodec.h>
#include <avformat.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#ifdef WITH_SWSCALE
#include <swscale.h>
#include <libswscale/swscale.h>
#endif
}
#include <layer.h>