[PATCH 1/2] Split AVUNERROR and AVERROR definition. Simplify an incoming patch for dropping AVUNERROR and somehow increase readability.

Stefano Sabatini stefano.sabatini-lala
Thu Mar 11 00:22:26 CET 2010


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

diff --git a/libavutil/error.h b/libavutil/error.h
index 89e122c..21647cb 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -27,10 +27,15 @@
 /* error handling */
 #if EINVAL > 0
 #define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */
-#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 AVERROR(e) (e)
+#endif
+
+#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
 
-- 
1.6.6.1


--J2SCkAp4GZ/dPZZf
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-Mark-AVUNERROR-for-deletion-at-the-next-major-bump.patch"




More information about the ffmpeg-devel mailing list