agingtv: fix memcpy when no color aging requested.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 9 Dec 2014 03:43:29 +0000 (04:43 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 9 Dec 2014 03:44:40 +0000 (04:44 +0100)
video_size is the size in pixels, actual size of the memcpy
has to be stride * height.

gst/effectv/gstaging.c

index c6bfa11..8121903 100644 (file)
@@ -334,7 +334,7 @@ gst_agingtv_transform_frame (GstVideoFilter * filter, GstVideoFrame * in_frame,
   if (agingtv->color_aging)
     coloraging (src, dest, video_size, &agingtv->coloraging_state);
   else
-    memcpy (dest, src, video_size);
+    memcpy (dest, src, stride * height);
 
   scratching (agingtv->scratches, agingtv->scratch_lines, dest, width, height);
   if (agingtv->pits)