Originally committed as revision 15268 to svn://svn.ffmpeg.org/ffmpeg/trunk
{
source += BUFFERSIZE - offset;
{
source += BUFFERSIZE - offset;
- if (offset > BLOCKSIZE) {
- memcpy(target, source, BLOCKSIZE*sizeof(*target));
- } else {
- memcpy(target, source, offset*sizeof(*target));
+ memcpy(target, source, FFMIN(BLOCKSIZE, offset)*sizeof(*target));
+ if (offset < BLOCKSIZE)
memcpy(target + offset, source, (BLOCKSIZE - offset)*sizeof(*target));
memcpy(target + offset, source, (BLOCKSIZE - offset)*sizeof(*target));
}
/** inverse root mean square */
}
/** inverse root mean square */