[FFmpeg-soc] [soc]: r290 - libavfilter/avfilter.c
koorogi
subversion at mplayerhq.hu
Sat Jun 30 18:05:03 CEST 2007
Author: koorogi
Date: Sat Jun 30 18:05:03 2007
New Revision: 290
Log:
Use memcpy() to copy an array.
Modified:
libavfilter/avfilter.c
Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c (original)
+++ libavfilter/avfilter.c Sat Jun 30 18:05:03 2007
@@ -55,10 +55,7 @@ AVFilterPicRef *avfilter_default_get_vid
pic->free = avfilter_default_free_video_buffer;
avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
- ref->data[0] = pic->data[0];
- ref->data[1] = pic->data[1];
- ref->data[2] = pic->data[2];
- ref->data[3] = pic->data[3];
+ memcpy(ref->data, pic->data, sizeof(int *) * 4);
return ref;
}
More information about the FFmpeg-soc
mailing list