Mercurial > libavformat.hg
comparison mmsh.c @ 6419:abd88124e6a9 libavformat
Fix two compiler arnings related to printf-format of sizeof()-statements.
author | rbultje |
---|---|
date | Sat, 28 Aug 2010 23:56:56 +0000 |
parents | 2f0124b97014 |
children |
comparison
equal
deleted
inserted
replaced
6418:2f0124b97014 | 6419:abd88124e6a9 |
---|---|
115 { | 115 { |
116 MMSContext *mms = &mmsh->mms; | 116 MMSContext *mms = &mmsh->mms; |
117 int res; | 117 int res; |
118 if (len > sizeof(mms->in_buffer)) { | 118 if (len > sizeof(mms->in_buffer)) { |
119 av_log(NULL, AV_LOG_ERROR, | 119 av_log(NULL, AV_LOG_ERROR, |
120 "Data packet length %d exceeds the in_buffer size %d\n", | 120 "Data packet length %d exceeds the in_buffer size %zu\n", |
121 len, sizeof(mms->in_buffer)); | 121 len, sizeof(mms->in_buffer)); |
122 return AVERROR(EIO); | 122 return AVERROR(EIO); |
123 } | 123 } |
124 res = url_read_complete(mms->mms_hd, mms->in_buffer, len); | 124 res = url_read_complete(mms->mms_hd, mms->in_buffer, len); |
125 dprintf(NULL, "Data packet len = %d\n", len); | 125 dprintf(NULL, "Data packet len = %d\n", len); |
190 return read_data_packet(mmsh, len); | 190 return read_data_packet(mmsh, len); |
191 } else { | 191 } else { |
192 if (len) { | 192 if (len) { |
193 if (len > sizeof(mms->in_buffer)) { | 193 if (len > sizeof(mms->in_buffer)) { |
194 av_log(NULL, AV_LOG_ERROR, | 194 av_log(NULL, AV_LOG_ERROR, |
195 "Other packet len = %d exceed the in_buffer size %d\n", | 195 "Other packet len = %d exceed the in_buffer size %zu\n", |
196 len, sizeof(mms->in_buffer)); | 196 len, sizeof(mms->in_buffer)); |
197 return AVERROR(EIO); | 197 return AVERROR(EIO); |
198 } | 198 } |
199 res = url_read_complete(mms->mms_hd, mms->in_buffer, len); | 199 res = url_read_complete(mms->mms_hd, mms->in_buffer, len); |
200 if (res != len) { | 200 if (res != len) { |