[PATCH 2/3] Add a new definition of AVERROR_EOF, which will override the old one which will be dropped at the next libavcodec major bump.
Stefano Sabatini
stefano.sabatini-lala
Mon Mar 8 22:49:37 CET 2010
This looks required as there is no POSIX error code corresponding to
that error condition, and the current POSIX code used for defining it,
EPIPE, does not look appropriate.
---
libavutil/error.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavutil/error.h b/libavutil/error.h
index d63c927..9c5f07f 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -34,5 +34,8 @@
/* FFmpeg specific error codes */
#define AVERROR_PATCHWELCOME (-MKTAG('P','A','W','E')) ///< Not yet implemented in FFmpeg. Patches welcome.
+#if 0 // enable by hand when LIBAVCODEC_VERSION_MAJOR == 53
+#define AVERROR_EOF (-MKTAG('E','O','F','_')) ///< End of file / stream.
+#endif
#endif /* AVUTIL_ERROR_H */
--
1.6.6.1
--xo44VMWPx7vlQ2+2--
More information about the ffmpeg-devel
mailing list