diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 16:57:07 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 18:39:38 +0400 |
commit | c914c99d4b8159d6be7c53c21f63d84f24d5ffeb (patch) | |
tree | 2b1f242c68e9fbe1bb51bb94df3b6050bcef6c47 /libswscale/utils.c | |
parent | 14851ca5f5a3af140085e82589e28e06c7cdefdc (diff) |
swscale/utils: use memcpy instead of loop in sws_cloneVec()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 53687f46c2..497d369c81 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1899,14 +1899,12 @@ void sws_convVec(SwsVector *a, SwsVector *b) SwsVector *sws_cloneVec(SwsVector *a) { - int i; SwsVector *vec = sws_allocVec(a->length); if (!vec) return NULL; - for (i = 0; i < a->length; i++) - vec->coeff[i] = a->coeff[i]; + memcpy(vec->coeff, a->coeff, a->length * sizeof(*a->coeff)); return vec; } |