[MPlayer-cvslog] r31935 - trunk/libmpdemux/demux_avi.c

diego subversion at mplayerhq.hu
Sat Aug 7 00:47:54 CEST 2010


Author: diego
Date: Sat Aug  7 00:47:54 2010
New Revision: 31935

Log:
Add 'z' length modifier to %d printf format specifiers for size_t arguments.
libmpdemux/demux_avi.c:553: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
libmpdemux/demux_avi.c:553: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'size_t'

Modified:
   trunk/libmpdemux/demux_avi.c

Modified: trunk/libmpdemux/demux_avi.c
==============================================================================
--- trunk/libmpdemux/demux_avi.c	Sat Aug  7 00:37:55 2010	(r31934)
+++ trunk/libmpdemux/demux_avi.c	Sat Aug  7 00:47:54 2010	(r31935)
@@ -550,7 +550,9 @@ static demuxer_t* demux_open_avi(demuxer
 	asamples+=(len+priv->audio_block_size-1)/priv->audio_block_size;
       }
     }
-    mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%"PRId64" (%u) audio size=%"PRId64" (%u)\n",vsize,vsamples,asize,asamples);
+    mp_msg(MSGT_DEMUX, MSGL_V,
+           "AVI video size=%"PRId64" (%zu) audio size=%"PRId64" (%zu)\n",
+           vsize, vsamples, asize, asamples);
     priv->numberofframes=vsamples;
     sh_video->i_bps=((float)vsize/(float)vsamples)*(float)sh_video->video.dwRate/(float)sh_video->video.dwScale;
     if(sh_audio) sh_audio->i_bps=((float)asize/(float)asamples)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;


More information about the MPlayer-cvslog mailing list