mirror of https://git.ffmpeg.org/ffmpeg.git
remove gcc warning about void * used in arithmetic
Originally committed as revision 6845 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
743311a1b0
commit
55bdd34d1a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue