replace memcpy with assignment
Commited in SoC by Bobby Bingham on 2007-08-17 23:04:33 Originally committed as revision 12011 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
269b9847ab
commit
cdf2a3326f
@ -38,7 +38,7 @@ static AVFilter **filters = NULL;
|
|||||||
AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
|
AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
|
||||||
{
|
{
|
||||||
AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef));
|
AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef));
|
||||||
memcpy(ret, ref, sizeof(AVFilterPicRef));
|
*ret = *ref;
|
||||||
ret->perms &= pmask;
|
ret->perms &= pmask;
|
||||||
ret->pic->refcount ++;
|
ret->pic->refcount ++;
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user