[FFmpeg-devel] [PATCH] Cast AV_NOPTS_VALUE to int64_t implicitly

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Sep 19 19:08:00 CEST 2012


Thus comparsion against int64_t value will not raise warning
(from -Wextra set) about comparsion of unsigned and signed integer
---
 libavutil/avutil.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 94f9ee8..ebfb13e 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -223,7 +223,7 @@ const char *av_get_media_type_string(enum AVMediaType media_type);
  * either pts or dts.
  */
 
-#define AV_NOPTS_VALUE          INT64_C(0x8000000000000000)
+#define AV_NOPTS_VALUE          (int64_t)INT64_C(0x8000000000000000)
 
 /**
  * Internal time base represented as integer
-- 
1.7.8.6



More information about the ffmpeg-devel mailing list