examples/get_pcr_pid.c: allow building for Windows 32 platforms.
[email protected] (Jean-Paul Saman) Wed, 16 Apr 2014 15:53:31 +0200 (CEST)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | 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); } _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel