From c201069fac9a76e6604f9d84d76a172434d62200 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 8 Apr 2015 17:27:42 +0200 Subject: [PATCH] avdevice: Add missing header for NULL_IF_CONFIG_SMALL Also reshuffle headers into canonical order where appropriate. --- libavdevice/alsa-audio-dec.c | 5 ++++- libavdevice/alsa-audio-enc.c | 3 +++ libavdevice/jack_audio.c | 1 + libavdevice/libdc1394.c | 17 ++++++++++------- libavdevice/pulse.c | 6 ++++-- libavdevice/sndio_dec.c | 6 ++++-- libavdevice/sndio_enc.c | 2 ++ libavdevice/vfwcap.c | 11 +++++++---- libavdevice/x11grab.c | 1 + libavdevice/xcbgrab.c | 7 ++++--- 10 files changed, 40 insertions(+), 19 deletions(-) diff --git a/libavdevice/alsa-audio-dec.c b/libavdevice/alsa-audio-dec.c index 0687a4ad3d..a6a814b80f 100644 --- a/libavdevice/alsa-audio-dec.c +++ b/libavdevice/alsa-audio-dec.c @@ -46,9 +46,12 @@ */ #include + +#include "libavutil/internal.h" +#include "libavutil/opt.h" + #include "libavformat/avformat.h" #include "libavformat/internal.h" -#include "libavutil/opt.h" #include "alsa-audio.h" diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c index bb4575fa02..db4f5e426f 100644 --- a/libavdevice/alsa-audio-enc.c +++ b/libavdevice/alsa-audio-enc.c @@ -38,6 +38,9 @@ */ #include + +#include "libavutil/internal.h" + #include "libavformat/avformat.h" #include "alsa-audio.h" diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c index 7bdc22925d..fc5caa8830 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -24,6 +24,7 @@ #include #include +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/fifo.h" #include "libavutil/opt.h" diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index cc348d4e84..3fa5d1fbad 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -21,13 +21,6 @@ */ #include "config.h" -#include "libavformat/avformat.h" -#include "libavformat/internal.h" -#include "libavutil/log.h" -#include "libavutil/mathematics.h" -#include "libavutil/opt.h" -#include "libavutil/parseutils.h" -#include "libavutil/pixdesc.h" #if HAVE_LIBDC1394_2 #include @@ -35,6 +28,16 @@ #include #include +#include "libavutil/internal.h" +#include "libavutil/log.h" +#include "libavutil/mathematics.h" +#include "libavutil/opt.h" +#include "libavutil/parseutils.h" +#include "libavutil/pixdesc.h" + +#include "libavformat/avformat.h" +#include "libavformat/internal.h" + #define DC1394_VIDEO_MODE_320x240_YUV422 MODE_320x240_YUV422 #define DC1394_VIDEO_MODE_640x480_YUV411 MODE_640x480_YUV411 #define DC1394_VIDEO_MODE_640x480_YUV422 MODE_640x480_YUV422 diff --git a/libavdevice/pulse.c b/libavdevice/pulse.c index 2136ee3fa4..aaff4478d4 100644 --- a/libavdevice/pulse.c +++ b/libavdevice/pulse.c @@ -29,10 +29,12 @@ #include #include +#include "libavutil/internal.h" +#include "libavutil/opt.h" +#include "libavutil/time.h" + #include "libavformat/avformat.h" #include "libavformat/internal.h" -#include "libavutil/time.h" -#include "libavutil/opt.h" #define DEFAULT_CODEC_ID AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE) diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c index 58caaa1f44..24c6d1e7da 100644 --- a/libavdevice/sndio_dec.c +++ b/libavdevice/sndio_dec.c @@ -22,11 +22,13 @@ #include #include -#include "libavformat/avformat.h" -#include "libavformat/internal.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/time.h" +#include "libavformat/avformat.h" +#include "libavformat/internal.h" + #include "sndio_common.h" static av_cold int audio_read_header(AVFormatContext *s1) diff --git a/libavdevice/sndio_enc.c b/libavdevice/sndio_enc.c index 6f69b9e501..61ac398a84 100644 --- a/libavdevice/sndio_enc.c +++ b/libavdevice/sndio_enc.c @@ -22,6 +22,8 @@ #include #include +#include "libavutil/internal.h" + #include "libavformat/avformat.h" #include "sndio_common.h" diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index b47de1b282..4182642ce9 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -19,13 +19,16 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavformat/avformat.h" -#include "libavformat/internal.h" +#include +#include + +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" -#include -#include + +#include "libavformat/avformat.h" +#include "libavformat/internal.h" /* Some obsolete versions of MinGW32 before 4.0.0 lack this. */ #ifndef HWND_MESSAGE diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index bf72241212..b2721ae8c6 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -51,6 +51,7 @@ #include #include +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 2435c9c1d0..13284ec9d4 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -33,14 +33,15 @@ #include #endif -#include "libavformat/avformat.h" -#include "libavformat/internal.h" - +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/time.h" +#include "libavformat/avformat.h" +#include "libavformat/internal.h" + typedef struct XCBGrabContext { const AVClass *class;