Mercurial > mplayer.hg
changeset 31858:bf37d5ac4516
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'
author | diego |
---|---|
date | Fri, 06 Aug 2010 23:25:31 +0000 |
parents | 7702d4effbbe |
children | 44f8d08901fe |
files | libmpdemux/demux_lmlm4.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lmlm4.c Fri Aug 06 23:19:34 2010 +0000 +++ b/libmpdemux/demux_lmlm4.c Fri Aug 06 23:25:31 2010 +0000 @@ -72,7 +72,9 @@ 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 @@ 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,