From 55bdd34d1a158d0c368ec00603d6c8818041c1c0 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 30 Oct 2006 23:59:52 +0000 Subject: [PATCH] remove gcc warning about void * used in arithmetic Originally committed as revision 6845 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index eb56d16126..51badad0a4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -203,7 +203,7 @@ void av_destruct_packet(AVPacket *pkt) */ int av_new_packet(AVPacket *pkt, int size) { - void *data; + uint8_t *data; if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) return AVERROR_NOMEM; data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);