int64_t_C patch by (Gael Chardon <gael-announcements+ffmpeg at 4now dot net>)
authorGael Chardon <gael.ffmpeg@4now.net>
Sat, 28 Feb 2004 16:41:23 +0000 (16:41 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 28 Feb 2004 16:41:23 +0000 (16:41 +0000)
Originally committed as revision 2825 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h
libavcodec/common.h

index 1a5b368..e6e0338 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
 #define AV_TOSTRING(s) #s
 #define LIBAVCODEC_IDENT       "FFmpeg" LIBAVCODEC_VERSION "b" AV_STRINGIFY(LIBAVCODEC_BUILD)
 
-#define AV_NOPTS_VALUE 0x8000000000000000LL
+#define AV_NOPTS_VALUE int64_t_C(0x8000000000000000)
 #define AV_TIME_BASE 1000000
 
 enum CodecID {
index d6d5cf2..8f88b34 100644 (file)
@@ -102,7 +102,7 @@ extern const struct AVOption avoptions_workaround_bug[11];
 #endif /* HAVE_INTTYPES_H */
 
 #ifndef INT64_MAX
-#define INT64_MAX 9223372036854775807LL
+#define INT64_MAX int64_t_C(9223372036854775807)
 #endif
 
 #ifdef EMULATE_FAST_INT