replace memcpy with assignment
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:38:13 +0000 (21:38 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:38:13 +0000 (21:38 +0000)
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

index f669599..8419887 100644 (file)
@@ -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;