comparison utils.c @ 1435:3d757766c236 libavformat

remove gcc warning about void * used in arithmetic
author bcoudurier
date Mon, 30 Oct 2006 23:59:52 +0000
parents 4eac39e2c41f
children ad3b03b7b142
comparison
equal deleted inserted replaced
1434:cfc938c2abbe 1435:3d757766c236
201 * @param size wanted payload size 201 * @param size wanted payload size
202 * @return 0 if OK. AVERROR_xxx otherwise. 202 * @return 0 if OK. AVERROR_xxx otherwise.
203 */ 203 */
204 int av_new_packet(AVPacket *pkt, int size) 204 int av_new_packet(AVPacket *pkt, int size)
205 { 205 {
206 void *data; 206 uint8_t *data;
207 if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) 207 if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)
208 return AVERROR_NOMEM; 208 return AVERROR_NOMEM;
209 data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); 209 data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
210 if (!data) 210 if (!data)
211 return AVERROR_NOMEM; 211 return AVERROR_NOMEM;