]> granicus.if.org Git - libass/commitdiff
MinGW treats %lld as %d. Replace it with PRId64.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 13 Aug 2006 00:47:33 +0000 (00:47 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 13 Aug 2006 00:47:33 +0000 (00:47 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19380 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c

index 4f9b8908ec2fcbb76bd39fb7e3093762b75bfe2f..76d97ca2e351930391e625d20c3d9d5c3e6f5fc8 100644 (file)
@@ -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 @@ void ass_process_line(ass_track_t* track, char *data, int size, long long timeco
        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;