diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index 565d6c3461..c1033da6f2 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -1889,7 +1889,7 @@ static inline void RENAME(initFilter)(int16_t *dstFilter, int16_t *filterPos, in // printf("%d %d %d\n", filterSize, srcW, dstW); *filterSize= (*filterSize +(filterAlign-1)) & (~(filterAlign-1)); - xDstInSrc= xInc - 0x8000; + xDstInSrc= xInc/2 - 0x8000; for(i=0; i>16) - (*filterSize>>1) + 1; @@ -1937,10 +1937,10 @@ static inline void RENAME(initFilter)(int16_t *dstFilter, int16_t *filterPos, in // printf("%d %d %d\n", *filterSize, srcW, dstW); *filterSize= (*filterSize +(filterAlign-1)) & (~(filterAlign-1)); - xDstInSrc= xInc - 0x8000; + xDstInSrc= xInc/2 - 0x8000; for(i=0; i