Revision 60c144f7 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
3809 3809
 */
3810 3810
int av_parse_video_frame_rate(AVRational *frame_rate, const char *str);
3811 3811

  
3812
/* error handling */
3813
#if EINVAL > 0
3814
#define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */
3815
#define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
3816
#else
3817
/* Some platforms have E* and errno already negated. */
3818
#define AVERROR(e) (e)
3819
#define AVUNERROR(e) (e)
3820
#endif
3821
#define AVERROR_UNKNOWN     AVERROR(EINVAL)  /**< unknown error */
3822
#define AVERROR_IO          AVERROR(EIO)     /**< I/O error */
3823
#define AVERROR_NUMEXPECTED AVERROR(EDOM)    /**< Number syntax expected in filename. */
3824
#define AVERROR_INVALIDDATA AVERROR(EINVAL)  /**< invalid data found */
3825
#define AVERROR_NOMEM       AVERROR(ENOMEM)  /**< not enough memory */
3826
#define AVERROR_NOFMT       AVERROR(EILSEQ)  /**< unknown format */
3827
#define AVERROR_NOTSUPP     AVERROR(ENOSYS)  /**< Operation not supported. */
3828
#define AVERROR_NOENT       AVERROR(ENOENT)  /**< No such file or directory. */
3829
#define AVERROR_EOF         AVERROR(EPIPE)   /**< End of file. */
3830
#define AVERROR_PATCHWELCOME    -MKTAG('P','A','W','E') /**< Not yet implemented in FFmpeg. Patches welcome. */
3831

  
3832 3812
/**
3833 3813
 * Logs a generic warning message about a missing feature. This function is
3834 3814
 * intended to be used internally by FFmpeg (libavcodec, libavformat, etc.)

Also available in: Unified diff