for (; length2 > 0; length2 -= tmp) {
tmp = FFMIN(length2, x);
- for (i = 0; i < tmp; i++)
+ for (i = 0; i < tmp - (tmp == length2); i++)
s->residues[filter_order + i] = *p2++ >> dshift;
for (i = 0; i < tmp; i++) {
*p1++ = v;
}
- memcpy(s->residues, &s->residues[tmp], 2 * filter_order);
+ memmove(s->residues, &s->residues[tmp], 2 * filter_order);
}
emms_c();