diff mpcommon.h @ 32664:6d08af681d54

Factorize ROUND() redefinitions macro.
author cboesch
date Mon, 03 Jan 2011 19:39:31 +0000
parents bc43cf7638e6
children 06b75ec1b9c9
line wrap: on
line diff
--- a/mpcommon.h	Mon Jan 03 18:37:45 2011 +0000
+++ b/mpcommon.h	Mon Jan 03 19:39:31 2011 +0000
@@ -25,6 +25,8 @@
 #include "libmpdemux/demuxer.h"
 #include "sub/ass_mp.h"
 
+#define ROUND(x) ((int)((x) < 0 ? (x) - 0.5 : (x) + 0.5))
+
 struct sh_video;
 
 extern double sub_last_pts;