[PATCH 2/7] Mark AVUNERROR for deletion at the next major bump.

Stefano Sabatini stefano.sabatini-lala
Thu Mar 11 00:24:19 CET 2010


---
 libavutil/error.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavutil/error.h b/libavutil/error.h
index 4e6a52e..2d0983a 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -32,12 +32,14 @@
 #define AVERROR(e) (e)
 #endif
 
+#if LIBAVUTIL_VERSION_MAJOR < 51
 #if EINVAL > 0
 #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
 #else
 /* Some platforms have E* and errno already negated. */
 #define AVUNERROR(e) (e)
 #endif
+#endif
 
 #define AVERROR_UNKNOWN     AVERROR(EINVAL)  /**< unknown error */
 #define AVERROR_IO          AVERROR(EIO)     /**< I/O error */
-- 
1.6.6.1


--uAKRQypu60I7Lcqm--



More information about the ffmpeg-devel mailing list