diff --git a/Makefile b/Makefile index f72bbe42b003175192fb2d68e14d23320a7e617e..4432e78524b72c649e289f109511575aeb2d6f13 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ VPATH=$(SRC_PATH_BARE) CFLAGS=$(OPTFLAGS) -I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \ -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale \ - -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H LDFLAGS+= -g PROGS-$(CONFIG_FFMPEG) += ffmpeg diff --git a/cmdutils.c b/cmdutils.c index 1a114aec9f55267b84360687ca5a8ec6862a2f9a..171574c014ca2751dc47440496b4c55a32113876 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -18,7 +18,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define HAVE_AV_CONFIG_H + #include "avformat.h" #include "cmdutils.h" diff --git a/ffmpeg.c b/ffmpeg.c index c364b119274c08d95ba43e990340d855f4d27fd4..cc97ce6a5ba41ce8342f06fc404fa8898ec412f6 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -18,7 +18,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define HAVE_AV_CONFIG_H + #include <signal.h> #include <limits.h> #include "avformat.h" diff --git a/ffplay.c b/ffplay.c index 23917ac1c0d9ca44d0c216c5e38e39ebe08d4b4e..304eadc83d324f756fd6bb05ec9c499af68d141d 100644 --- a/ffplay.c +++ b/ffplay.c @@ -18,7 +18,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define HAVE_AV_CONFIG_H + #include "avformat.h" #include "swscale.h" diff --git a/ffserver.c b/ffserver.c index 8f9bba6b49c9cc610ab4519eed21d2948d4a9591..14c77cc0367c4ac881f122c3fe8fffad4d4b8f37 100644 --- a/ffserver.c +++ b/ffserver.c @@ -18,7 +18,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define HAVE_AV_CONFIG_H + #include "avformat.h" #include <stdarg.h> diff --git a/output_example.c b/output_example.c index ca12b783f1ae360ddea349f28cd2e85370cef846..39866d892b7c005d3ca72f07fb02c8f695b48ac3 100644 --- a/output_example.c +++ b/output_example.c @@ -34,6 +34,8 @@ #include "avformat.h" #include "swscale.h" +#undef exit + /* 5 seconds stream duration */ #define STREAM_DURATION 5.0 #define STREAM_FRAME_RATE 25 /* 25 images/s */