error: change AVERROR_EOF value
authorAnton Khirnov <anton@khirnov.net>
Wed, 20 Apr 2011 05:14:50 +0000 (07:14 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 21 Apr 2011 05:10:16 +0000 (07:10 +0200)
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@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavutil/error.h

index 62e75e136d0b5f746e5c8a24ec5d825fd87daf13..a422f8555c5e1ab76bdb0801a174ae2bbb08be04 100644 (file)
@@ -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