diff options
author | Bohdan Horst <nexus@irc.pl> | 2004-10-24 13:20:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-24 13:20:32 +0000 |
commit | cc044c1cc02c375fdb8f5446c656924a7362103e (patch) | |
tree | 07f80ddacac6e39be52590a67b2a85d1cddd9aec | |
parent | afbb5ce40633eb05d255fdd6b27705f66a58ba95 (diff) | |
download | ffmpeg-cc044c1cc02c375fdb8f5446c656924a7362103e.tar.gz |
INT MIN/MAX patch by (Bohdan Horst <nexus at irc dot pl>)
Originally committed as revision 3632 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index b87feb08e5..0fa3f6e2dc 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -112,6 +112,18 @@ extern const struct AVOption avoptions_workaround_bug[11]; # endif /* other OS */ #endif /* HAVE_INTTYPES_H */ +#ifndef INT16_MIN +#define INT16_MIN (-0x7fff-1) +#endif + +#ifndef INT16_MAX +#define INT16_MAX 0x7fff +#endif + +#ifndef INT64_MIN +#define INT64_MIN (-0x7fffffffffffffffLL-1) +#endif + #ifndef INT64_MAX #define INT64_MAX int64_t_C(9223372036854775807) #endif |