comparison error.h @ 879:042e0e6f0735 libavutil

Make iff.c:decode_init return the value returned by avctx->get_buffer() in case of error, rather than AVERROR_UNKNOWN which is deprecated, and mark AVERROR_UNKNOWN for deletion at the next major bump.
author stefano
date Sat, 13 Mar 2010 19:19:40 +0000
parents 1380f7caffd6
children 30f20f8cf016
comparison
equal deleted inserted replaced
878:1380f7caffd6 879:042e0e6f0735
31 #else 31 #else
32 /* Some platforms have E* and errno already negated. */ 32 /* Some platforms have E* and errno already negated. */
33 #define AVERROR(e) (e) 33 #define AVERROR(e) (e)
34 #define AVUNERROR(e) (e) 34 #define AVUNERROR(e) (e)
35 #endif 35 #endif
36
37 #if LIBAVUTIL_VERSION_MAJOR < 51
36 #define AVERROR_UNKNOWN AVERROR(EINVAL) /**< unknown error */ 38 #define AVERROR_UNKNOWN AVERROR(EINVAL) /**< unknown error */
39 #endif
40
37 #define AVERROR_IO AVERROR(EIO) /**< I/O error */ 41 #define AVERROR_IO AVERROR(EIO) /**< I/O error */
38 #define AVERROR_NUMEXPECTED AVERROR(EDOM) /**< Number syntax expected in filename. */ 42 #define AVERROR_NUMEXPECTED AVERROR(EDOM) /**< Number syntax expected in filename. */
39 #define AVERROR_INVALIDDATA AVERROR(EINVAL) /**< invalid data found */ 43 #define AVERROR_INVALIDDATA AVERROR(EINVAL) /**< invalid data found */
40 #define AVERROR_NOMEM AVERROR(ENOMEM) /**< not enough memory */ 44 #define AVERROR_NOMEM AVERROR(ENOMEM) /**< not enough memory */
41 #define AVERROR_NOFMT AVERROR(EILSEQ) /**< unknown format */ 45 #define AVERROR_NOFMT AVERROR(EILSEQ) /**< unknown format */