]> git.sesse.net Git - vlc/commitdiff
Avoid type conversion errors with VLC_TS_*
authorTristan Matthews <le.businessman@gmail.com>
Wed, 27 Nov 2013 15:08:08 +0000 (15:08 +0000)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 29 Nov 2013 14:48:03 +0000 (09:48 -0500)
Without the INT64_C, ES_OUT_SET_PCR was being called with garbage values
(when not on 64-bit systems).
Refs #9828

include/vlc_config.h

index c1cf96ca29d7a1c1e90fc1ce3505376c4d7c4464..50b488742ef12b110e3d535fdda537aa9dfb1383 100644 (file)
@@ -40,8 +40,8 @@
 
 /* All timestamp below or equal to this define are invalid/unset
  * XXX the numerical value is 0 because of historical reason and will change.*/
-#define VLC_TS_INVALID (0)
-#define VLC_TS_0 (1)
+#define VLC_TS_INVALID INT64_C(0)
+#define VLC_TS_0 INT64_C(1)
 
 #define CLOCK_FREQ INT64_C(1000000)