[FFmpeg-cvslog] error: change AVERROR_EOF value

Anton Khirnov git at videolan.org
Fri Apr 22 03:58:45 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Apr 20 07:14:50 2011 +0200| [a975dbc86b97a421e51ac7075b8df869915745a2] | committer: Anton Khirnov

error: change AVERROR_EOF value

The current value is masking the POSIX error code EPIPE, which has a
different semantics.

This breaks API.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a975dbc86b97a421e51ac7075b8df869915745a2
---

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

diff --git a/libavutil/error.h b/libavutil/error.h
index 62e75e1..a422f85 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -37,7 +37,7 @@
 #define AVUNERROR(e) (e)
 #endif
 
-#define AVERROR_EOF         AVERROR(EPIPE)   ///< End of file
+#define AVERROR_EOF             (-MKTAG('E','O','F',' ')) ///< End of file
 
 #define AVERROR_PATCHWELCOME    (-MKTAG('P','A','W','E')) ///< Not yet implemented in Libav, patches welcome
 



More information about the ffmpeg-cvslog mailing list