[libdvbpsi-devel] examples/get_pcr_pid.c: allow building for Windows 32 platforms.

Jean-Paul Saman git at videolan.org
Wed Apr 16 15:53:31 CEST 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Mon Apr  7 15:13:04 2014 +0200| [a4fddc3a502c71e4bba7e6c26dd72367624a1e06] | committer: Jean-Paul Saman

examples/get_pcr_pid.c: allow building for Windows 32 platforms.

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

 examples/get_pcr_pid.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/examples/get_pcr_pid.c b/examples/get_pcr_pid.c
index 8690361..bf43e99 100644
--- a/examples/get_pcr_pid.c
+++ b/examples/get_pcr_pid.c
@@ -156,8 +156,13 @@ static void TSHandle( uint8_t *p_ts )
 
     if ( !ts_CheckSync( p_ts ) )
     {
-        fprintf( stderr, "lost TS synchro, go and fix your file (pos=%ju)\n",
-                 (uintmax_t)i_ts_read * TS_SIZE );
+        fprintf( stderr, "lost TS synchro, go and fix your file "
+#if defined(WIN32)
+                 " (pos=%u)\n",  (uint32_t) i_ts_read * TS_SIZE
+#else
+                 " (pos=%ju)\n", (uintmax_t)i_ts_read * TS_SIZE
+#endif
+	);
         exit(EXIT_FAILURE);
     }
 



More information about the libdvbpsi-devel mailing list