]> granicus.if.org Git - libass/commitdiff
Replace %lld with PRId64, part 2.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 13 Aug 2006 10:54:29 +0000 (10:54 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 13 Aug 2006 10:54:29 +0000 (10:54 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19384 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c
libass/ass_render.c

index 76d97ca2e351930391e625d20c3d9d5c3e6f5fc8..4738946d951c6d624c9b1261094e617e94583686 100644 (file)
@@ -505,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, "event at %" PRId64 ", +%" PRId64 ": %s  \n", (uint64_t)timecode, (uint64_t)duration, str);
+       mp_msg(MSGT_GLOBAL, MSGL_V, "event at %" PRId64 ", +%" PRId64 ": %s  \n", (int64_t)timecode, (int64_t)duration, str);
 
        eid = ass_alloc_event(track);
        event = track->events + eid;
index f567520c0690e316cdff4475640d959fbf802ce6..e5f88f4c4e465d641acf75573d7446de75ef9187 100644 (file)
@@ -3,6 +3,7 @@
 #include <assert.h>
 #include <math.h>
 #include <stdint.h>
+#include <inttypes.h>
 #include <ft2build.h>
 #include FT_FREETYPE_H
 #include FT_STROKER_H
@@ -669,7 +670,8 @@ static char* parse_tag(char* p, double pwr) {
                        t1 = strtoll(p, &p, 10);
                        skip(',');
                        t2 = strtoll(p, &p, 10);
-                       mp_msg(MSGT_GLOBAL, MSGL_DBG2, "movement6: (%d, %d) -> (%d, %d), (%lld .. %lld)\n", x1, y1, x2, y2, t1, t2);
+                       mp_msg(MSGT_GLOBAL, MSGL_DBG2, "movement6: (%d, %d) -> (%d, %d), (%" PRId64 " .. %" PRId64 ")\n", 
+                               x1, y1, x2, y2, (int64_t)t1, (int64_t)t2);
                } else {
                        t1 = 0;
                        t2 = render_context.event->Duration;