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

vitor subversion
Fri Feb 15 22:35:35 CET 2008


Author: vitor
Date: Fri Feb 15 22:35:35 2008
New Revision: 11971

Log:
Even better way to pass size to memcpy.

Commited in SoC by Bobby Bingham on 2007-07-02 14:33:18


Modified:
   trunk/libavfilter/avfilter.c

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