agingtv: fix memcpy when no color aging requested.
video_size is the size in pixels, actual size of the memcpy has to be stride * height.
This commit is contained in:
parent
eb1dcd841a
commit
a5694b213a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user