[PATCH 6/6] Change the definition of AVERROR_EOF at the next libavutil major bump, using an FFmpeg specific error code rather than EPIPE, which has a different semantics.

Stefano Sabatini stefano.sabatini-lala
Tue Mar 16 23:12:16 CET 2010


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

diff --git a/libavutil/error.h b/libavutil/error.h
index 2220be9..8a14db0 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -38,6 +38,7 @@
 #endif
 
 #if LIBAVUTIL_VERSION_MAJOR < 51
+#define AVERROR_EOF         AVERROR(EPIPE)   ///< End of file
 #define AVERROR_INVALIDDATA AVERROR(EINVAL)  ///< Invalid data found when processing input
 #define AVERROR_IO          AVERROR(EIO)     ///< I/O error
 #define AVERROR_NOENT       AVERROR(ENOENT)  ///< No such file or directory
@@ -48,11 +49,10 @@
 #define AVERROR_UNKNOWN     AVERROR(EINVAL)  ///< Unknown error
 #endif
 
-#define AVERROR_EOF         AVERROR(EPIPE)   ///< End of file
-
 #define AVERROR_PATCHWELCOME    (-MKTAG('P','A','W','E')) ///< Not yet implemented in FFmpeg, patches welcome
 
 #if LIBAVUTIL_VERSION_MAJOR > 50
+#define AVERROR_EOF             (-MKTAG('E','O','F',' ')) ///< End of file
 #define AVERROR_INVALIDDATA     (-MKTAG('I','N','D','A')) ///< Invalid data found when processing input
 #define AVERROR_NUMEXPECTED     (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
 #endif
-- 
1.7.0


--1SQmhf2mF2YjsYvc--



More information about the ffmpeg-devel mailing list