3372
3373
linecpy(tempSrc + srcStride*copyAhead, srcBlock + srcStride*copyAhead,
3373
3374
FFMAX(height-y-copyAhead, 0), srcStride);
3376
3377
for(i=FFMAX(height-y, 8); i<copyAhead+8; i++)
3377
3378
memcpy(tempSrc + srcStride*i, src + srcStride*(height-1), FFABS(srcStride));
3379
3380
/* copy up to (copyAhead+1) lines of dst (line -1 to (copyAhead-1))*/
3380
3381
linecpy(tempDst, dstBlock - dstStride, FFMIN(height-y+1, copyAhead+1), dstStride);
3383
3384
for(i=height-y+1; i<=copyAhead; i++)
3384
3385
memcpy(tempDst + dstStride*i, dst + dstStride*(height-1), FFABS(dstStride));