[MPlayer-cvslog] r34232 - in trunk: libmpcodecs/ve_vfw.c libmpdemux/demux_nsv.c libmpdemux/muxer_avi.c stream/stream.h stream/stream_vstream.c sub/vobsub.c

diego subversion at mplayerhq.hu
Fri Oct 21 17:44:59 CEST 2011


Author: diego
Date: Fri Oct 21 17:44:58 2011
New Revision: 34232

Log:
Employ correct off_t printf conversion specifiers; this time without typos.

This fixes a handful of warnings like
libmpcodecs/ve_vfw.c:150:7: warning: format '%d' expects type 'int', but argument 4 has type '__off64_t'

Modified:
   trunk/libmpcodecs/ve_vfw.c
   trunk/libmpdemux/demux_nsv.c
   trunk/libmpdemux/muxer_avi.c
   trunk/stream/stream.h
   trunk/stream/stream_vstream.c
   trunk/sub/vobsub.c

Modified: trunk/libmpcodecs/ve_vfw.c
==============================================================================
--- trunk/libmpcodecs/ve_vfw.c	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/libmpcodecs/ve_vfw.c	Fri Oct 21 17:44:58 2011	(r34232)
@@ -147,7 +147,7 @@ mp_msg(MSGT_WIN32,MSGL_INFO,"\n");
         return NULL;
       }
       fclose(fd);
-      mp_msg(MSGT_WIN32,MSGL_ERR,"Compressor data %"PRIu64"d bytes\n", st.st_size);
+      mp_msg(MSGT_WIN32,MSGL_ERR,"Compressor data %"PRIu64" bytes\n", st.st_size);
       if (!(temp_len = (unsigned int) ICSendMessage(encoder_hic, ICM_SETSTATE, (LPARAM) drvdata, (int) st.st_size))){
         mp_msg(MSGT_WIN32,MSGL_ERR,"ICSetState failed!\n");
         free(drvdata);

Modified: trunk/libmpdemux/demux_nsv.c
==============================================================================
--- trunk/libmpdemux/demux_nsv.c	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/libmpdemux/demux_nsv.c	Fri Oct 21 17:44:58 2011	(r34232)
@@ -76,7 +76,7 @@ static int demux_nsv_fill_buffer ( demux
     // 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 %08"PRIu64"X\n",
+    mp_dbg(MSGT_DEMUX, MSGL_DBG2, "demux_nsv: %08X %08"PRIX64"\n",
            hdr[0] << 8 | hdr[1], stream_tell(demuxer->stream));
     switch(hdr[0]<<8|hdr[1]) {
         case 0x4E53:

Modified: trunk/libmpdemux/muxer_avi.c
==============================================================================
--- trunk/libmpdemux/muxer_avi.c	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/libmpdemux/muxer_avi.c	Fri Oct 21 17:44:58 2011	(r34232)
@@ -487,7 +487,7 @@ info[i].id=0;
     if (stream_tell(muxer->stream) != MOVIALIGN) {
 	mp_msg(MSGT_MUXER, MSGL_ERR, "Opendml superindex is too big for reserved space!\n");
         mp_msg(MSGT_MUXER, MSGL_ERR,
-               "Expected filepos %d, real filepos %"PRIu64"d, missing space %"PRIu64"d\n",
+               "Expected filepos %d, real filepos %"PRIu64", missing space %"PRIu64"\n",
                MOVIALIGN, stream_tell(muxer->stream), stream_tell(muxer->stream) - MOVIALIGN);
 	mp_msg(MSGT_MUXER, MSGL_ERR, "Try increasing MOVIALIGN in libmpdemux/muxer_avi.c\n");
     }

Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/stream/stream.h	Fri Oct 21 17:44:58 2011	(r34232)
@@ -294,11 +294,11 @@ inline static off_t stream_tell(stream_t
 
 inline static int stream_seek(stream_t *s,off_t pos){
 
-  mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%llX\n", (long long)pos);
+  mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%"PRIX64"\n", pos);
 
   if (pos < 0) {
-    mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid seek to negative position %llx!\n",
-           (long long)pos);
+    mp_msg(MSGT_DEMUX, MSGL_ERR,
+           "Invalid seek to negative position %"PRIx64"!\n", pos);
     pos = 0;
   }
   if(pos<s->pos){

Modified: trunk/stream/stream_vstream.c
==============================================================================
--- trunk/stream/stream_vstream.c	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/stream/stream_vstream.c	Fri Oct 21 17:44:58 2011	(r34232)
@@ -153,7 +153,7 @@ static int open_s(stream_t *stream, int 
 
   stream->start_pos = 0;
   stream->end_pos = vstream_streamsize();
-  mp_msg(MSGT_OPEN, MSGL_DBG2, "Tivo stream size is %"PRIu64"d\n", stream->end_pos);
+  mp_msg(MSGT_OPEN, MSGL_DBG2, "Tivo stream size is %"PRIu64"\n", stream->end_pos);
 
   stream->priv = p;
   stream->fill_buffer = fill_buffer;

Modified: trunk/sub/vobsub.c
==============================================================================
--- trunk/sub/vobsub.c	Fri Oct 21 17:44:56 2011	(r34231)
+++ trunk/sub/vobsub.c	Fri Oct 21 17:44:58 2011	(r34232)
@@ -696,7 +696,7 @@ static int vobsub_parse_timestamp(vobsub
 {
     int h, m, s, ms;
     off_t filepos;
-    if (sscanf(line, " %02d:%02d:%02d:%03d, filepos: %09"PRIu64"x",
+    if (sscanf(line, " %02d:%02d:%02d:%03d, filepos: %09"PRIx64"",
                &h, &m, &s, &ms, &filepos) != 5)
         return -1;
     return vobsub_add_timestamp(vob, filepos, vob->delay + ms + 1000 * (s + 60 * (m + 60 * h)));


More information about the MPlayer-cvslog mailing list