[NUT-devel] [nut]: r279 - trunk/libnut/priv.h

ods15 subversion at mplayerhq.hu
Tue Jan 30 20:07:06 CET 2007


Author: ods15
Date: Tue Jan 30 20:07:05 2007
New Revision: 279

Modified:
   trunk/libnut/priv.h

Log:
slightly simpler TO_DOUBLE_PTS


Modified: trunk/libnut/priv.h
==============================================================================
--- trunk/libnut/priv.h	(original)
+++ trunk/libnut/priv.h	Tue Jan 30 20:07:05 2007
@@ -231,7 +231,7 @@
 
 #define TO_DOUBLE(t, pts) ((double)(pts) / nut->tb[t].den * nut->tb[t].num)
 
-#define TO_DOUBLE_PTS(pts) ((double)((pts) / nut->timebase_count) / nut->tb[(pts) % nut->timebase_count].den * nut->tb[(pts) % nut->timebase_count].num)
+#define TO_DOUBLE_PTS(pts) TO_DOUBLE((pts) / nut->timebase_count, (pts) % nut->timebase_count)
 
 #define TO_TB(i) nut->tb[nut->sc[i].timebase_id]
 



More information about the NUT-devel mailing list