Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-08 16:57:07 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-08 18:39:38 +0400
commitc914c99d4b8159d6be7c53c21f63d84f24d5ffeb (patch)
tree2b1f242c68e9fbe1bb51bb94df3b6050bcef6c47 /libswscale
parent14851ca5f5a3af140085e82589e28e06c7cdefdc (diff)
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.c4
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;
}