Commit 3bd8b03c authored by vitor's avatar vitor

Simplify if() in copy_and_dup()



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15268 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dfaadacc
...@@ -109,12 +109,9 @@ static void copy_and_dup(int16_t *target, const int16_t *source, int offset) ...@@ -109,12 +109,9 @@ static void copy_and_dup(int16_t *target, const int16_t *source, int offset)
{ {
source += BUFFERSIZE - offset; source += BUFFERSIZE - offset;
if (offset > BLOCKSIZE) { memcpy(target, source, FFMIN(BLOCKSIZE, offset)*sizeof(*target));
memcpy(target, source, BLOCKSIZE*sizeof(*target)); if (offset < BLOCKSIZE)
} else {
memcpy(target, source, offset*sizeof(*target));
memcpy(target + offset, source, (BLOCKSIZE - offset)*sizeof(*target)); memcpy(target + offset, source, (BLOCKSIZE - offset)*sizeof(*target));
}
} }
/** inverse root mean square */ /** inverse root mean square */
......
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