common: convolve: Use memcpy in av1_convolve_2d_copy_sr_c
Use memcpy() function instead of copying 8-bit integers serially.
Change-Id: I19b452e54c6433474be00793d539864cb9c30c19
diff --git a/av1/common/convolve.c b/av1/common/convolve.c
index 56f9db1..d57f44f 100644
--- a/av1/common/convolve.c
+++ b/av1/common/convolve.c
@@ -198,9 +198,7 @@
(void)conv_params;
for (int y = 0; y < h; ++y) {
- for (int x = 0; x < w; ++x) {
- dst[y * dst_stride + x] = src[y * src_stride + x];
- }
+ memcpy(dst + y * dst_stride, src + y * src_stride, w * sizeof(src[0]));
}
}