[MPlayer-cvslog] r31937 - trunk/libmpdemux/demux_lmlm4.c
diego
subversion at mplayerhq.hu
Sat Aug 7 01:25:32 CEST 2010
Author: diego
Date: Sat Aug 7 01:25:31 2010
New Revision: 31937
Log:
Add 'z' length modifier to %d printf format specifiers for size_t arguments.
libmpdemux/demux_lmlm4.c:75: warning: format '%d' expects type 'int', but argument 5 has type 'ssize_t'
libmpdemux/demux_lmlm4.c:163: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
libmpdemux/demux_lmlm4.c:163: warning: format '%d' expects type 'int', but argument 7 has type 'ssize_t'
Modified:
trunk/libmpdemux/demux_lmlm4.c
Modified: trunk/libmpdemux/demux_lmlm4.c
==============================================================================
--- trunk/libmpdemux/demux_lmlm4.c Sat Aug 7 01:19:34 2010 (r31936)
+++ trunk/libmpdemux/demux_lmlm4.c Sat Aug 7 01:25:31 2010 (r31937)
@@ -72,7 +72,9 @@ static int imeHeaderValid(FrameInfo *fra
if ( frame->channelNo > 7 ||
frame->frameSize > MAX_PACKET_SIZE || frame->frameSize <= 0)
{
- mp_msg(MSGT_DEMUX, MSGL_V, "Invalid packet in LMLM4 stream: ch=%d size=%d\n", frame->channelNo, frame->frameSize);
+ mp_msg(MSGT_DEMUX, MSGL_V,
+ "Invalid packet in LMLM4 stream: ch=%d size=%zd\n",
+ frame->channelNo, frame->frameSize);
return 0;
}
switch (frame->frameType) {
@@ -156,7 +158,7 @@ static int getFrame(demuxer_t *demuxer,
frameInfo->frameSize = packetSize - 8; //sizeof(IME6400Header);
frameInfo->paddingSize = (packetSize & PACKET_BLOCK_LAST) ? PACKET_BLOCK_SIZE - (packetSize & PACKET_BLOCK_LAST) : 0;
- mp_msg(MSGT_DEMUX, MSGL_DBG2, "typ: %d chan: %d size: %d pad: %d\n",
+ mp_msg(MSGT_DEMUX, MSGL_DBG2, "typ: %d chan: %d size: %zd pad: %zd\n",
frameInfo->frameType,
frameInfo->channelNo,
frameInfo->frameSize,
More information about the MPlayer-cvslog
mailing list