diff libmpdemux/demux_nsv.c @ 34139:cc8dfde2b6c5

Fix off_t printf conversion specifiers and related warnings.
author diego
date Thu, 20 Oct 2011 21:49:30 +0000
parents 8fa2f43cb760
children beafae9de2be
line wrap: on
line diff
--- a/libmpdemux/demux_nsv.c	Thu Oct 20 16:42:31 2011 +0000
+++ b/libmpdemux/demux_nsv.c	Thu Oct 20 21:49:30 2011 +0000
@@ -23,6 +23,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -75,7 +76,8 @@
     // sometimes instead of 0xBEEF as described for the next audio/video chunk we get
     // a whole new header
 
-    mp_dbg(MSGT_DEMUX,MSGL_DBG2,"demux_nsv: %08X %08X\n",hdr[0]<<8|hdr[1],stream_tell(demuxer->stream));
+    mp_dbg(MSGT_DEMUX, MSGL_DBG2, "demux_nsv: %08X %08"PRIu64"X\n",
+           hdr[0] << 8 | hdr[1], stream_tell(demuxer->stream));
     switch(hdr[0]<<8|hdr[1]) {
         case 0x4E53:
             if(hdr[2]==0x56 && hdr[3]==0x73){