[4/4] avutil: Clean up required header #includes in installed headers

Message ID 1386957049-7276-5-git-send-email-diego@biurrun.de
State New
Headers show

Commit Message

Diego Biurrun Dec. 13, 2013, 5:50 p.m.
---
 libavutil/audio_fifo.h | 2 --
 libavutil/eval.h       | 2 --
 libavutil/fifo.h       | 2 --
 libavutil/file.h       | 3 +--
 libavutil/frame.h      | 2 +-
 libavutil/imgutils.h   | 2 ++
 libavutil/log.h        | 2 +-
 libavutil/mem.h        | 1 +
 libavutil/samplefmt.h  | 3 ---
 9 files changed, 6 insertions(+), 13 deletions(-)

Patch

diff --git a/libavutil/audio_fifo.h b/libavutil/audio_fifo.h
index 8c76388..70793a0 100644
--- a/libavutil/audio_fifo.h
+++ b/libavutil/audio_fifo.h
@@ -27,8 +27,6 @@ 
 #ifndef AVUTIL_AUDIO_FIFO_H
 #define AVUTIL_AUDIO_FIFO_H
 
-#include "avutil.h"
-#include "fifo.h"
 #include "samplefmt.h"
 
 /**
diff --git a/libavutil/eval.h b/libavutil/eval.h
index ccb29e7..12625f0 100644
--- a/libavutil/eval.h
+++ b/libavutil/eval.h
@@ -26,8 +26,6 @@ 
 #ifndef AVUTIL_EVAL_H
 #define AVUTIL_EVAL_H
 
-#include "avutil.h"
-
 typedef struct AVExpr AVExpr;
 
 /**
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index ea30f5d..52c6f12 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -25,8 +25,6 @@ 
 #define AVUTIL_FIFO_H
 
 #include <stdint.h>
-#include "avutil.h"
-#include "attributes.h"
 
 typedef struct AVFifoBuffer {
     uint8_t *buffer;
diff --git a/libavutil/file.h b/libavutil/file.h
index e3f02a8..f12b99c 100644
--- a/libavutil/file.h
+++ b/libavutil/file.h
@@ -19,10 +19,9 @@ 
 #ifndef AVUTIL_FILE_H
 #define AVUTIL_FILE_H
 
+#include <stddef.h>
 #include <stdint.h>
 
-#include "avutil.h"
-
 /**
  * @file
  * Misc file utilities.
diff --git a/libavutil/frame.h b/libavutil/frame.h
index 1b3db98..1c1de79 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -24,11 +24,11 @@ 
 
 #include "libavcodec/version.h"
 
+#include "attributes.h"
 #include "avutil.h"
 #include "buffer.h"
 #include "dict.h"
 #include "rational.h"
-#include "samplefmt.h"
 
 enum AVFrameSideDataType {
     /**
diff --git a/libavutil/imgutils.h b/libavutil/imgutils.h
index 7151013..8d98b6f 100644
--- a/libavutil/imgutils.h
+++ b/libavutil/imgutils.h
@@ -27,6 +27,8 @@ 
  * @{
  */
 
+#include <stdint.h>
+
 #include "avutil.h"
 #include "pixdesc.h"
 
diff --git a/libavutil/log.h b/libavutil/log.h
index 05d2826..3a0f466 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -22,7 +22,7 @@ 
 #define AVUTIL_LOG_H
 
 #include <stdarg.h>
-#include "avutil.h"
+
 #include "attributes.h"
 
 /**
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 4a5e362..0589104 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -27,6 +27,7 @@ 
 #define AVUTIL_MEM_H
 
 #include <limits.h>
+#include <stddef.h>
 #include <stdint.h>
 
 #include "attributes.h"
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
index 33cbded..c90b776 100644
--- a/libavutil/samplefmt.h
+++ b/libavutil/samplefmt.h
@@ -21,9 +21,6 @@ 
 
 #include <stdint.h>
 
-#include "avutil.h"
-#include "attributes.h"
-
 /**
  * Audio Sample Formats
  *