diff --git a/libavutil/error.h b/libavutil/error.h index 8a53b906a2..02dbc6a73d 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -28,7 +28,7 @@ #include "avutil.h" /* 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 AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */ #else