src/io/source_avcodec.c: includes first
authorPaul Brossier <piem@piem.org>
Sun, 11 Dec 2016 02:49:05 +0000 (03:49 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 11 Dec 2016 02:49:05 +0000 (03:49 +0100)
src/io/source_avcodec.c

index ed7a619..9a5201e 100644 (file)
 
 #ifdef HAVE_LIBAV
 
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavresample/avresample.h>
+#include <libavutil/opt.h>
+#include <stdlib.h>
+
 // determine whether we use libavformat from ffmpeg or from libav
 #define FFMPEG_LIBAVFORMAT (LIBAVFORMAT_VERSION_MICRO > 99 )
 // max_analyze_duration2 was used from ffmpeg libavformat 55.43.100 through 57.2.100
       || (LIBAVFORMAT_VERSION_MAJOR == 57 && LIBAVFORMAT_VERSION_MINOR < 2) \
       )
 
-#include <libavcodec/avcodec.h>
-#include <libavformat/avformat.h>
-#include <libavresample/avresample.h>
-#include <libavutil/opt.h>
-#include <stdlib.h>
-
 // backward compatibility with libavcodec55
 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
 #warning "libavcodec55 is deprecated"