[PATCH 07/14] Change the definition of AVERROR_INVALIDDATA at the next libavutil major bump, using an FFmpeg specific error code rather than EINVAL, which has a quite different semantics.
Stefano Sabatini
stefano.sabatini-lala
Fri Mar 19 00:58:01 CET 2010
---
libavutil/error.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavutil/error.h b/libavutil/error.h
index ca047bf..6c972d0 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -39,6 +39,7 @@
#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. */
#define AVERROR_NOMEM AVERROR(ENOMEM) /**< not enough memory */
@@ -46,7 +47,6 @@
#define AVERROR_UNKNOWN AVERROR(EINVAL) /**< unknown error */
#endif
-#define AVERROR_INVALIDDATA AVERROR(EINVAL) /**< Invalid data found when processing input */
#define AVERROR_NOFMT AVERROR(EILSEQ) /**< unknown format */
#define AVERROR_NOTSUPP AVERROR(ENOSYS) /**< Operation not supported. */
@@ -54,6 +54,7 @@
#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
--ftEhullJWpWg/VHq--
More information about the ffmpeg-devel
mailing list