[PATCH 2/8] 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 f12788e..f7132a1 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -28,10 +28,15 @@
 /** Returns a negative error code corresponding to a POSIX error code, to return from library functions. */
 #if EINVAL > 0
 #define AVERROR(e) (-(e))
-#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


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




More information about the ffmpeg-devel mailing list