FF_ALLOC_OR_GOTO(NULL, filter,
dstW * sizeof(*filter) * filterSize, fail);
- xDstInSrc = ((srcPos*xInc)>>8) - ((dstPos*0x8000)>>7);
+ xDstInSrc = ((dstPos*xInc)>>8) - ((srcPos*0x8000)>>7);
for (i = 0; i < dstW; i++) {
int xx = (xDstInSrc - ((filterSize - 1) << 15) + (1 << 15)) >> 16;
FF_ALLOC_OR_GOTO(NULL, filter,
dstW * sizeof(*filter) * filterSize, fail);
- xDstInSrc = ((srcPos*xInc)>>8) - ((dstPos*0x8000)>>7);
+ xDstInSrc = ((dstPos*xInc)>>8) - ((srcPos*0x8000)>>7);
for (i = 0; i < dstW; i++) {
int xx = (xDstInSrc - ((filterSize - 1) << 15) + (1 << 15)) >> 16;
int j;
FF_ALLOC_OR_GOTO(NULL, filter,
dstW * sizeof(*filter) * filterSize, fail);
- xDstInSrc = ((srcPos*xInc)>>7) - ((dstPos*0x10000)>>7);
+ xDstInSrc = ((dstPos*xInc)>>7) - ((srcPos*0x10000)>>7);
for (i = 0; i < dstW; i++) {
int xx = (xDstInSrc - ((filterSize - 2) << 16)) / (1 << 17);
int j;