[FFmpeg-cvslog] r12011 - trunk/libavfilter/avfilter.c

vitor subversion
Fri Feb 15 22:38:14 CET 2008


Author: vitor
Date: Fri Feb 15 22:38:13 2008
New Revision: 12011

Log:
replace memcpy with assignment

Commited in SoC by Bobby Bingham on 2007-08-17 23:04:33


Modified:
   trunk/libavfilter/avfilter.c

Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c	(original)
+++ trunk/libavfilter/avfilter.c	Fri Feb 15 22:38:13 2008
@@ -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-cvslog mailing list