[SCM] libav/experimental: Even better way to pass size to memcpy.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:14:17 UTC 2013
The following commit has been merged in the experimental branch:
commit a4ca73890e7e89db39f458e6f8e22548187e3048
Author: Vitor Sessak <vitor1001 at gmail.com>
Date: Fri Feb 15 21:35:35 2008 +0000
Even better way to pass size to memcpy.
Commited in SoC by Bobby Bingham on 2007-07-02 14:33:18
Originally committed as revision 11971 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 1f4feeb..ba97e12 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -55,8 +55,8 @@ 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);
- 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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list