diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:34:07 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:34:07 +0000 |
commit | 58a9b20fb6a5b9458464a811d17ad628ddfaaba1 (patch) | |
tree | 108853662abc550f45f4c9e80156a96cb7000591 /libavfilter/avfilter.c | |
parent | d72a138e43ed921537dcfaae686c7b6e82469f33 (diff) |
Use memcpy() to copy an array.
Commited in SoC by Bobby Bingham on 2007-06-30 16:05:03
Originally committed as revision 11967 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 1a60063654..8df2653902 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -55,10 +55,7 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms) 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; } |