mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale/utils: use memcpy instead of loop in sws_cloneVec()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
14851ca5f5
commit
c914c99d4b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user