[FFmpeg-soc] [soc]: r930 - libavfilter/avfilter.c

koorogi subversion at mplayerhq.hu
Sat Aug 18 01:04:33 CEST 2007


Author: koorogi
Date: Sat Aug 18 01:04:33 2007
New Revision: 930

Log:
replace memcpy with assignment


Modified:
   libavfilter/avfilter.c

Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c	(original)
+++ libavfilter/avfilter.c	Sat Aug 18 01:04:33 2007
@@ -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;



More information about the FFmpeg-soc mailing list