mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Use memcpy instead of for loop
Originally committed as revision 11051 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
28af284cfb
commit
289987e454
@ -323,10 +323,8 @@ void nelly_decode_block(NellyMoserDecodeContext *s, unsigned char block[NELLY_BL
|
|||||||
aptr, s->imdct_tmp);
|
aptr, s->imdct_tmp);
|
||||||
/* XXX: overlapping and windowing should be part of a more
|
/* XXX: overlapping and windowing should be part of a more
|
||||||
generic imdct function */
|
generic imdct function */
|
||||||
for(j = 0; j < NELLY_BUF_LEN / 2; j++) {
|
memcpy(&aptr[0],&s->imdct_out[NELLY_BUF_LEN+NELLY_BUF_LEN/2], (NELLY_BUF_LEN/2)*sizeof(float));
|
||||||
aptr[j] = s->imdct_out[j + NELLY_BUF_LEN + NELLY_BUF_LEN / 2];
|
memcpy(&aptr[NELLY_BUF_LEN / 2],&s->imdct_out[0],(NELLY_BUF_LEN/2)*sizeof(float));
|
||||||
aptr[j + NELLY_BUF_LEN / 2] = s->imdct_out[j];
|
|
||||||
}
|
|
||||||
overlap_and_window(s, s->state, aptr);
|
overlap_and_window(s, s->state, aptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user