diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 14:57:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-08 16:39:38 +0200 |
commit | c914c99d4b8159d6be7c53c21f63d84f24d5ffeb (patch) | |
tree | 2b1f242c68e9fbe1bb51bb94df3b6050bcef6c47 /libswscale | |
parent | 14851ca5f5a3af140085e82589e28e06c7cdefdc (diff) | |
download | ffmpeg-c914c99d4b8159d6be7c53c21f63d84f24d5ffeb.tar.gz |
swscale/utils: use memcpy instead of loop in sws_cloneVec()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-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; } |