comparison libmpdemux/demux_lmlm4.c @ 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 cd81fce1f010
children e2a7509972d4
comparison
equal deleted inserted replaced
31857:7702d4effbbe 31858:bf37d5ac4516
70 static int imeHeaderValid(FrameInfo *frame) 70 static int imeHeaderValid(FrameInfo *frame)
71 { 71 {
72 if ( frame->channelNo > 7 || 72 if ( frame->channelNo > 7 ||
73 frame->frameSize > MAX_PACKET_SIZE || frame->frameSize <= 0) 73 frame->frameSize > MAX_PACKET_SIZE || frame->frameSize <= 0)
74 { 74 {
75 mp_msg(MSGT_DEMUX, MSGL_V, "Invalid packet in LMLM4 stream: ch=%d size=%d\n", frame->channelNo, frame->frameSize); 75 mp_msg(MSGT_DEMUX, MSGL_V,
76 "Invalid packet in LMLM4 stream: ch=%d size=%zd\n",
77 frame->channelNo, frame->frameSize);
76 return 0; 78 return 0;
77 } 79 }
78 switch (frame->frameType) { 80 switch (frame->frameType) {
79 case FRAMETYPE_I: 81 case FRAMETYPE_I:
80 case FRAMETYPE_P: 82 case FRAMETYPE_P:
154 } 156 }
155 157
156 frameInfo->frameSize = packetSize - 8; //sizeof(IME6400Header); 158 frameInfo->frameSize = packetSize - 8; //sizeof(IME6400Header);
157 frameInfo->paddingSize = (packetSize & PACKET_BLOCK_LAST) ? PACKET_BLOCK_SIZE - (packetSize & PACKET_BLOCK_LAST) : 0; 159 frameInfo->paddingSize = (packetSize & PACKET_BLOCK_LAST) ? PACKET_BLOCK_SIZE - (packetSize & PACKET_BLOCK_LAST) : 0;
158 160
159 mp_msg(MSGT_DEMUX, MSGL_DBG2, "typ: %d chan: %d size: %d pad: %d\n", 161 mp_msg(MSGT_DEMUX, MSGL_DBG2, "typ: %d chan: %d size: %zd pad: %zd\n",
160 frameInfo->frameType, 162 frameInfo->frameType,
161 frameInfo->channelNo, 163 frameInfo->channelNo,
162 frameInfo->frameSize, 164 frameInfo->frameSize,
163 frameInfo->paddingSize); 165 frameInfo->paddingSize);
164 166