[FFmpeg-cvslog] avutil: Cast AV_NOPTS_VALUE to int64_t explicitly
Andrey Utkin
git at videolan.org
Wed Sep 19 20:09:30 CEST 2012
ffmpeg | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Wed Sep 19 19:42:14 2012 +0200| [cb3591e69738c808d26ba15eb02414fedfcd91cc] | committer: Michael Niedermayer
avutil: Cast AV_NOPTS_VALUE to int64_t explicitly
Thus comparsion against int64_t value will not raise warning
(from -Wextra set) about comparsion of unsigned and signed integer
commiter added () and changed the litteral to unsigned
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb3591e69738c808d26ba15eb02414fedfcd91cc
---
libavutil/avutil.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 94f9ee8..cd02b35 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)UINT64_C(0x8000000000000000))
/**
* Internal time base represented as integer
More information about the ffmpeg-cvslog
mailing list