Commit c914c99d authored by Michael Niedermayer's avatar Michael Niedermayer

swscale/utils: use memcpy instead of loop in sws_cloneVec()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 14851ca5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment