changeset 19374:acb26d9717da

MinGW treats %lld as %d. Replace it with PRId64.
author eugeni
date Sun, 13 Aug 2006 00:47:33 +0000
parents 87dddfc314fd
children 3f2fc9e40cd4
files libass/ass.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Sun Aug 13 00:44:42 2006 +0000
+++ b/libass/ass.c	Sun Aug 13 00:47:33 2006 +0000
@@ -9,6 +9,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <inttypes.h>
 
 #ifdef HAVE_ENCA
 #include "subreader.h" // for guess_buffer_cp
@@ -504,7 +505,7 @@
 	str = malloc(size + 1);
 	memcpy(str, data, size);
 	str[size] = '\0';
-	mp_msg(MSGT_GLOBAL, MSGL_V, "\nline at timecode %lld, duration %lld: \n%s\n", timecode, duration, str);
+	mp_msg(MSGT_GLOBAL, MSGL_V, "event at %" PRId64 ", +%" PRId64 ": %s  \n", (uint64_t)timecode, (uint64_t)duration, str);
 
 	eid = ass_alloc_event(track);
 	event = track->events + eid;