diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 5a80325388..c51260face 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -49,9 +49,9 @@ int av_new_packet(AVPacket *pkt, int size) { uint8_t *data= NULL; if((unsigned)size < (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) - data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); + data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); if (data){ - memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); + memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); }else size=0;