[libbluray-devel] clpi_dump: fixed PTS -> SPN map in 32-bit systems

hpi1 git at videolan.org
Wed Jan 23 10:24:02 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jan 23 11:14:16 2013 +0200| [cd6a7eb3fb28a7bbd2c604b5e49c01aed896fc00] | committer: hpi1

clpi_dump: fixed PTS -> SPN map in 32-bit systems

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=cd6a7eb3fb28a7bbd2c604b5e49c01aed896fc00
---

 src/examples/clpi_dump.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/examples/clpi_dump.c b/src/examples/clpi_dump.c
index 08faf1b..b6e6882 100644
--- a/src/examples/clpi_dump.c
+++ b/src/examples/clpi_dump.c
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <inttypes.h>
 
 #include "libbluray/bdnav/clpi_parse.h"
 
@@ -338,7 +339,7 @@ _show_cpi_info(CLPI_CPI *cpi, int level)
                     pts = ((uint64_t) (coarse->pts_ep & ~0x01) << 19) +
                             ((uint64_t)fine->pts_ep << 9);
                     spn = (coarse->spn_ep & ~0x1FFFF) + fine->spn_ep;
-                    indent_printf(level+4, "PTS %8lu/%8lu -- SPN %u",
+                    indent_printf(level+4, "PTS %8"PRIu64"/%8"PRIu64" -- SPN %u",
                         pts, pts >> 1, spn);
                 }
             }



More information about the libbluray-devel mailing list