Commit 816c2f70 authored by bcoudurier's avatar bcoudurier

remove gcc warning about void * used in arithmetic

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6845 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ac368155
...@@ -203,7 +203,7 @@ void av_destruct_packet(AVPacket *pkt) ...@@ -203,7 +203,7 @@ void av_destruct_packet(AVPacket *pkt)
*/ */
int av_new_packet(AVPacket *pkt, int size) int av_new_packet(AVPacket *pkt, int size)
{ {
void *data; uint8_t *data;
if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)
return AVERROR_NOMEM; return AVERROR_NOMEM;
data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment