[FFmpeg-devel] [PATCH 17/17] lavu/error: fix make checkheaders.

Clément Bœsch ubitux at gmail.com
Wed May 9 10:01:42 CEST 2012


From: Clément Bœsch <clement.boesch at smartjog.com>

The errors need to be defined before including functions depending on
them. See av_size_mult() for instance.
---
 libavutil/error.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavutil/error.h b/libavutil/error.h
index 3b05e4b..6a7eec6 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -25,7 +25,6 @@
 #define AVUTIL_ERROR_H
 
 #include <errno.h>
-#include "avutil.h"
 
 /**
  * @addtogroup lavu_error
@@ -68,6 +67,8 @@
 #define AVERROR_BUG2               FFERRTAG( 'B','U','G',' ')
 #define AVERROR_UNKNOWN            FFERRTAG( 'U','N','K','N') ///< Unknown error, typically from an external library
 
+#include "avutil.h"
+
 /**
  * Put a description of the AVERROR code errnum in errbuf.
  * In case of failure the global variable errno is set to indicate the
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list