summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-08-07 00:02:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-07 00:02:21 +0000
commit59ff3fd536051b005f1cec53ca60e4d0e2cde126 (patch)
treef9f42c28ee996ee7a2b1bc884f91339454021be8 /libavfilter
parent209e451a32ae76c39ec7aa53d2e3c23a819d64c8 (diff)
Fix the size of the data to be copied from an AVFilterBuffer to an
AVFilterBuffereRef in avfilter_default_get_video_buffer(). The error was being caused by the previous patch which resized AVFilterBuffer's data and linesize arrays to 8. Patch by S.N. Hemanth Meenakshisundaram" &smeenaks&ucsd&edu&. Originally committed as revision 24727 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/defaults.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index 8deef93fe6..47ae1e9c90 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -59,8 +59,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms,
// SIMD-friendly
av_fill_image_pointers(pic->data, pic->format, ref->h, buf, pic->linesize);
- memcpy(ref->data, pic->data, sizeof(pic->data));
- memcpy(ref->linesize, pic->linesize, sizeof(pic->linesize));
+ memcpy(ref->data, pic->data, 4*sizeof(pic->data[0]));
+ memcpy(ref->linesize, pic->linesize, 4*sizeof(pic->linesize[0]));
return ref;
}