From 959da985b03570cfe7d239c0ba6d550ecb04c460 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 13 Jan 2009 23:36:06 +0000 Subject: Include libavformat/avformat.h before all the other libav* headers. This is safer since they may use the symbol LIBAVFORMAT_BUILD defined in avformat.h. Originally committed as revision 16589 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ffserver.c b/ffserver.c index 23bb64ca08..231697eec5 100644 --- a/ffserver.c +++ b/ffserver.c @@ -28,13 +28,14 @@ #include #include #include -#include "libavutil/random.h" -#include "libavutil/avstring.h" +/* avformat.h defines LIBAVFORMAT_BUILD, include it before all the other libav* headers which use it */ #include "libavformat/avformat.h" #include "libavformat/network.h" #include "libavformat/os_support.h" #include "libavformat/rtp.h" #include "libavformat/rtsp.h" +#include "libavutil/avstring.h" +#include "libavutil/random.h" #include "libavcodec/opt.h" #include #include -- cgit v1.2.3