[vlc-devel] [PATCH 02/16] common: make sure the conversion to mtime_t is in mtime_t
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jun 7 11:59:46 CEST 2018
---
include/vlc_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index d79ed61221..1168f2dc1b 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -288,7 +288,7 @@
*/
typedef int64_t mtime_t;
-#define MS_TO_MTIME(ms) ((ms) * (CLOCK_FREQ / 1000))
+#define MS_TO_MTIME(ms) ((mtime_t)((ms) * (CLOCK_FREQ / 1000)))
#define MTIME_TO_MS(ms) (((ms) * 1000) / CLOCK_FREQ)
--
2.17.0
More information about the vlc-devel
mailing list