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