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

koorogi subversion at mplayerhq.hu
Mon Jul 2 16:33:18 CEST 2007


Author: koorogi
Date: Mon Jul  2 16:33:18 2007
New Revision: 304

Log:
Even better way to pass size to memcpy.


Modified:
   libavfilter/avfilter.c

Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c	(original)
+++ libavfilter/avfilter.c	Mon Jul  2 16:33:18 2007
@@ -55,8 +55,8 @@ AVFilterPicRef *avfilter_default_get_vid
     pic->free = avfilter_default_free_video_buffer;
     avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
 
-    memcpy(ref->data, pic->data, sizeof(uint8_t *) * 4);
-    memcpy(ref->linesize, pic->linesize, sizeof(int) * 4);
+    memcpy(ref->data, pic->data, sizeof(pic->data));
+    memcpy(ref->linesize, pic->linesize, sizeof(pic->linesize));
 
     return ref;
 }



More information about the FFmpeg-soc mailing list