aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-14 22:25:35 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-14 22:25:35 +0000
commit6d2877f47e83872da9aa1dad3172ba610d3c65d0 (patch)
treed0f579c4781f7353499f64a9373c6f1270db4dff /libavutil/error.h
parente4836e3c078281d5ea8de8569836613a7b43ccce (diff)
downloadffmpeg-6d2877f47e83872da9aa1dad3172ba610d3c65d0.tar.gz
error.h: test EDOM instead of EINVAL
C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE. Originally committed as revision 22530 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/error.h')
-rw-r--r--libavutil/error.h2
1 files changed, 1 insertions, 1 deletions
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