diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:35:35 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:35:35 +0000 |
commit | a4ca73890e7e89db39f458e6f8e22548187e3048 (patch) | |
tree | c638ba60ccc794eaffaf00030b3aa350ecb96033 /libavfilter/avfilter.c | |
parent | 4f770f667f3b1ac946a99dc2eea2d9c8ca131719 (diff) |
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
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 1f4feeb9da..ba97e12d7a 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; } |