From 2e11268ea9812cec9ca334c8c0e825dcfb64bef9 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Fri, 1 Aug 2008 16:29:26 +0000
Subject: [PATCH] Add missing header #includes.

Originally committed as revision 14497 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/avformat.h   | 1 +
 libavformat/ffm.h        | 2 ++
 libavformat/nut.h        | 1 +
 libavformat/oggdec.h     | 1 +
 libavformat/os_support.h | 2 ++
 libavformat/raw.h        | 1 +
 libavformat/rm.h         | 1 +
 libavformat/rtp.h        | 1 +
 libavformat/rtp_aac.h    | 1 +
 libavformat/rtp_h264.h   | 1 +
 libavformat/rtp_mpv.h    | 1 +
 libavformat/swf.h        | 1 +
 12 files changed, 14 insertions(+)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index c6586862e9b..529bf24cd78 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -35,6 +35,7 @@
 
 #define LIBAVFORMAT_IDENT       "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
 
+#include <stdint.h>
 #include <time.h>
 #include <stdio.h>  /* FILE */
 #include "libavcodec/avcodec.h"
diff --git a/libavformat/ffm.h b/libavformat/ffm.h
index 52a84094a82..1ede49a2857 100644
--- a/libavformat/ffm.h
+++ b/libavformat/ffm.h
@@ -22,7 +22,9 @@
 #ifndef FFMPEG_FFM_H
 #define FFMPEG_FFM_H
 
+#include <stdint.h>
 #include "avformat.h"
+#include "avio.h"
 
 /* The FFM file is made of blocks of fixed size */
 #define FFM_HEADER_SIZE 14
diff --git a/libavformat/nut.h b/libavformat/nut.h
index 6acebc34b74..23ddcaaecba 100644
--- a/libavformat/nut.h
+++ b/libavformat/nut.h
@@ -22,6 +22,7 @@
 #ifndef FFMPEG_NUT_H
 #define FFMPEG_NUT_H
 
+#include <stdint.h>
 //#include <limits.h>
 //#include "libavutil/adler32.h"
 //#include "libavcodec/mpegaudio.h"
diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h
index 4e88d0e3931..09407d2ff65 100644
--- a/libavformat/oggdec.h
+++ b/libavformat/oggdec.h
@@ -25,6 +25,7 @@
 #ifndef FFMPEG_OGGDEC_H
 #define FFMPEG_OGGDEC_H
 
+#include <stdint.h>
 #include "avformat.h"
 
 typedef struct ogg_codec {
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 34970e39520..4c32ad54a26 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -27,6 +27,8 @@
  * miscellaneous OS support macros and functions.
  */
 
+#include "config.h"
+
 #ifdef __MINGW32__
 #  define WIN32_LEAN_AND_MEAN
 #  include <windows.h>
diff --git a/libavformat/raw.h b/libavformat/raw.h
index 3d851c829b7..d83bf3ab0cf 100644
--- a/libavformat/raw.h
+++ b/libavformat/raw.h
@@ -22,6 +22,7 @@
 #ifndef FFMPEG_RAW_H
 #define FFMPEG_RAW_H
 
+#include <stdint.h>
 #include "avformat.h"
 
 int pcm_read_seek(AVFormatContext *s,
diff --git a/libavformat/rm.h b/libavformat/rm.h
index 2f7f8df2eeb..0fea7291231 100644
--- a/libavformat/rm.h
+++ b/libavformat/rm.h
@@ -22,6 +22,7 @@
 #ifndef FFMPEG_RM_H
 #define FFMPEG_RM_H
 
+#include <stdint.h>
 #include "avformat.h"
 
 
diff --git a/libavformat/rtp.h b/libavformat/rtp.h
index 36affed4204..1603471c7c6 100644
--- a/libavformat/rtp.h
+++ b/libavformat/rtp.h
@@ -21,6 +21,7 @@
 #ifndef FFMPEG_RTP_H
 #define FFMPEG_RTP_H
 
+#include <stdint.h>
 #include "libavcodec/avcodec.h"
 #include "avformat.h"
 
diff --git a/libavformat/rtp_aac.h b/libavformat/rtp_aac.h
index 24b41cc4255..d4cbb597071 100644
--- a/libavformat/rtp_aac.h
+++ b/libavformat/rtp_aac.h
@@ -20,6 +20,7 @@
 #ifndef FFMPEG_RTP_AAC_H
 #define FFMPEG_RTP_AAC_H
 
+#include <stdint.h>
 #include "avformat.h"
 
 void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size);
diff --git a/libavformat/rtp_h264.h b/libavformat/rtp_h264.h
index 0f23e525cc3..db23f79128a 100644
--- a/libavformat/rtp_h264.h
+++ b/libavformat/rtp_h264.h
@@ -22,6 +22,7 @@
 #ifndef FFMPEG_RTP_H264_H
 #define FFMPEG_RTP_H264_H
 
+#include <stdint.h>
 #include "rtp_internal.h"
 
 extern RTPDynamicProtocolHandler ff_h264_dynamic_handler;
diff --git a/libavformat/rtp_mpv.h b/libavformat/rtp_mpv.h
index 36e649a8916..c17939bc9f6 100644
--- a/libavformat/rtp_mpv.h
+++ b/libavformat/rtp_mpv.h
@@ -20,6 +20,7 @@
 #ifndef FFMPEG_RTP_MPV_H
 #define FFMPEG_RTP_MPV_H
 
+#include <stdint.h>
 #include "avformat.h"
 
 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size);
diff --git a/libavformat/swf.h b/libavformat/swf.h
index 8249f7ddf95..4ae2b90ef39 100644
--- a/libavformat/swf.h
+++ b/libavformat/swf.h
@@ -25,6 +25,7 @@
 
 #include "libavutil/fifo.h"
 #include "avformat.h"
+#include "avio.h"
 #include "riff.h"    /* for CodecTag */
 
 /* should have a generic way to indicate probable size */
-- 
GitLab