[FFmpeg-cvslog] r11051 - trunk/libavcodec/nellymoserdec.c
banan
subversion
Sun Nov 18 11:54:38 CET 2007
Author: banan
Date: Sun Nov 18 11:54:38 2007
New Revision: 11051
Log:
Use memcpy instead of for loop
Modified:
trunk/libavcodec/nellymoserdec.c
Modified: trunk/libavcodec/nellymoserdec.c
==============================================================================
--- trunk/libavcodec/nellymoserdec.c (original)
+++ trunk/libavcodec/nellymoserdec.c Sun Nov 18 11:54:38 2007
@@ -323,10 +323,8 @@ void nelly_decode_block(NellyMoserDecode
aptr, s->imdct_tmp);
/* XXX: overlapping and windowing should be part of a more
generic imdct function */
- for(j = 0; j < NELLY_BUF_LEN / 2; j++) {
- aptr[j] = s->imdct_out[j + NELLY_BUF_LEN + NELLY_BUF_LEN / 2];
- aptr[j + NELLY_BUF_LEN / 2] = s->imdct_out[j];
- }
+ memcpy(&aptr[0],&s->imdct_out[NELLY_BUF_LEN+NELLY_BUF_LEN/2], (NELLY_BUF_LEN/2)*sizeof(float));
+ memcpy(&aptr[NELLY_BUF_LEN / 2],&s->imdct_out[0],(NELLY_BUF_LEN/2)*sizeof(float));
overlap_and_window(s, s->state, aptr);
}
}
More information about the ffmpeg-cvslog
mailing list