Commit 3bec87a6 authored by stefano's avatar stefano

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16589 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 556e8bbc
......@@ -28,13 +28,14 @@
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#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 <stdarg.h>
#include <unistd.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment