[FFmpeg-cvslog] r24727 - trunk/libavfilter/defaults.c

stefano subversion
Sat Aug 7 02:02:21 CEST 2010


Author: stefano
Date: Sat Aug  7 02:02:21 2010
New Revision: 24727

Log:
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&.

Modified:
   trunk/libavfilter/defaults.c

Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c	Sat Aug  7 01:15:35 2010	(r24726)
+++ trunk/libavfilter/defaults.c	Sat Aug  7 02:02:21 2010	(r24727)
@@ -59,8 +59,8 @@ AVFilterPicRef *avfilter_default_get_vid
                                     // 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;
 }



More information about the ffmpeg-cvslog mailing list