提交 55bdd34d 编写于 作者: B Baptiste Coudurier

remove gcc warning about void * used in arithmetic

Originally committed as revision 6845 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 743311a1
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册