Commit decf1eb8 authored by mru's avatar mru

error.h: test EDOM instead of EINVAL

C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22530 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9df6dcff
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "avutil.h" #include "avutil.h"
/* error handling */ /* error handling */
#if EINVAL > 0 #if EDOM > 0
#define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */ #define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */
#define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */ #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment