From cdf2a3326fe3b6a39d1b353fd59ca9a21bd73899 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Fri, 15 Feb 2008 21:38:13 +0000 Subject: [PATCH] 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 --- libavfilter/avfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index f6695997c..841988748 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -38,7 +38,7 @@ static AVFilter **filters = NULL; AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask) { AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef)); - memcpy(ret, ref, sizeof(AVFilterPicRef)); + *ret = *ref; ret->perms &= pmask; ret->pic->refcount ++; return ret; -- 2.11.0