video-scaler: avoid memcpy when not needed

This commit is contained in:
Wim Taymans 2014-11-05 11:52:21 +01:00
parent 0980dfcb99
commit cf970376df

View file

@ -488,14 +488,16 @@ static void
video_scale_v_near_u32 (GstVideoScaler * scale,
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
{
orc_memcpy (dest, srcs[0], 4 * width);
if (dest != srcs[0])
orc_memcpy (dest, srcs[0], 4 * width);
}
static void
video_scale_v_near_u64 (GstVideoScaler * scale,
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
{
orc_memcpy (dest, srcs[0], 8 * width);
if (dest != srcs[0])
orc_memcpy (dest, srcs[0], 8 * width);
}
static void