提交 58a9b20f 编写于 作者: V Vitor Sessak

Use memcpy() to copy an array.

Commited in SoC by Bobby Bingham on 2007-06-30 16:05:03

Originally committed as revision 11967 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 d72a138e
......@@ -55,10 +55,7 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms)
pic->free = avfilter_default_free_video_buffer;
avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
ref->data[0] = pic->data[0];
ref->data[1] = pic->data[1];
ref->data[2] = pic->data[2];
ref->data[3] = pic->data[3];
memcpy(ref->data, pic->data, sizeof(int *) * 4);
return ref;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册