Revision 490a022d libavutil/error.h

View differences:

libavutil/error.h
37 37
#define AVUNERROR(e) (e)
38 38
#endif
39 39

  
40
#if LIBAVUTIL_VERSION_MAJOR < 51
41
#define AVERROR_INVALIDDATA AVERROR(EINVAL)  ///< Invalid data found when processing input
42
#define AVERROR_IO          AVERROR(EIO)     ///< I/O error
43
#define AVERROR_NOENT       AVERROR(ENOENT)  ///< No such file or directory
44
#define AVERROR_NOFMT       AVERROR(EILSEQ)  ///< Unknown format
45
#define AVERROR_NOMEM       AVERROR(ENOMEM)  ///< Not enough memory
46
#define AVERROR_NOTSUPP     AVERROR(ENOSYS)  ///< Operation not supported
47
#define AVERROR_NUMEXPECTED AVERROR(EDOM)    ///< Number syntax expected in filename
48
#define AVERROR_UNKNOWN     AVERROR(EINVAL)  ///< Unknown error
49
#endif
50

  
51 40
#define AVERROR_EOF         AVERROR(EPIPE)   ///< End of file
52 41

  
53 42
#define AVERROR_PATCHWELCOME    (-MKTAG('P','A','W','E')) ///< Not yet implemented in Libav, patches welcome
54 43

  
55
#if LIBAVUTIL_VERSION_MAJOR > 50
56 44
#define AVERROR_INVALIDDATA     (-MKTAG('I','N','D','A')) ///< Invalid data found when processing input
57 45
#define AVERROR_NUMEXPECTED     (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
58
#endif
59 46

  
60 47
#define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
61 48
#define AVERROR_MUXER_NOT_FOUND    (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found

Also available in: Unified diff